Module nl.jqno.equalsverifier
Class BuiltinGenericPrefabValueProvider
java.lang.Object
nl.jqno.equalsverifier.internal.valueproviders.BuiltinGenericPrefabValueProvider
- All Implemented Interfaces:
ValueProvider
A ValueProvider for generic Java API classes.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprovide(TypeTag tag, Attributes attributes) Returns a tuple of two different prefabricated values of the specified type.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nl.jqno.equalsverifier.internal.valueproviders.ValueProvider
provideOrThrow
-
Field Details
-
vp
-
-
Constructor Details
-
BuiltinGenericPrefabValueProvider
-
-
Method Details
-
provide
Returns a tuple of two different prefabricated values of the specified type.}- Specified by:
providein interfaceValueProvider- Type Parameters:
T- The returned tuple will have this generic type.- Parameters:
tag- A description of the desired type, including generic parameters.attributes- The attributes of the field that the provided values must be linked to.- Returns:
- A tuple of two different values of the given type, or an empty Optional if none could be found.
-