Package cz.o2.proxima.core.functional
Interface Factory<T>
-
- Type Parameters:
T
- type of returned object
- All Superinterfaces:
java.io.Serializable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@Stable @FunctionalInterface public interface Factory<T> extends java.io.Serializable
A factory function.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
apply()
Apply the factory function.
-
-
-
Method Detail
-
apply
T apply()
Apply the factory function.- Returns:
- the created object
-
-