Interface Factory<T>
-
- Type Parameters:
T
- the type of element to create
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Factory<T>
Factory for creating elements of a certain type for a given context.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description T
create(Context context)
Create an element using the supplied context.default T
createAndConfigure(Context context, java.util.function.Consumer<? super T> configurer)
Create and configure an element using the supplied context andconfigurer
.
-