Interface PrefabValueFactory<T>
- Type Parameters:
T- The type to instantiate.
- All Known Implementing Classes:
AbstractGenericFactory,CopyFactory,EnumMapFactory,EnumSetFactory,ExternalFactory,FallbackFactory,MapFactory,SimpleFactory,SimpleGenericFactory
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Creates instances of generic types for use as prefab value.
-
Method Summary
Modifier and TypeMethodDescriptioncreateValues(TypeTag tag, PrefabValues prefabValues, LinkedHashSet<TypeTag> typeStack) Creates a tuple of two prefab values.
-
Method Details
-
createValues
Creates a tuple of two prefab values.- 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 ofTypeTags that require tag in order to be created. Used for recursion detection.- Returns:
- A "red" instance of
T.
-