-
- 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 ObjectProducer<T>
- Author:
- Loc Ha
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voiddestroy(Object obj)Tproduce(ObjectFactory factory)
-
-
-
Method Detail
-
produce
T produce(ObjectFactory factory) throws ObjectException
- Throws:
ObjectException
-
destroy
default void destroy(Object obj) throws ObjectException
- Throws:
ObjectException
-
-