Class ExternalFactory<T>
- java.lang.Object
-
- nl.jqno.equalsverifier.internal.prefabvalues.factories.ExternalFactory<T>
-
- All Implemented Interfaces:
PrefabValueFactory<T>
public class ExternalFactory<T> extends Object implements PrefabValueFactory<T>
-
-
Constructor Summary
Constructors Constructor Description ExternalFactory(String factoryName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tuple<T>
createValues(TypeTag tag, PrefabValues prefabValues, LinkedHashSet<TypeTag> typeStack)
Creates a tuple of two prefab values.
-
-
-
Constructor Detail
-
ExternalFactory
public ExternalFactory(String factoryName)
-
-
Method Detail
-
createValues
public Tuple<T> createValues(TypeTag tag, PrefabValues prefabValues, LinkedHashSet<TypeTag> typeStack)
Description copied from interface:PrefabValueFactory
Creates a tuple of two prefab values.- Specified by:
createValues
in interfacePrefabValueFactory<T>
- Parameters:
tag
- The typetag of the type for which to create values.prefabValues
- Repository for querying instances of generic types of the type tag.typeStack
- A stack ofTypeTag
s that require tag in order to be created. Used for recursion detection.- Returns:
- A "red" instance of
T
.
-
-