Package akka.japi.function
Interface Creator<T>
-
- All Superinterfaces:
java.io.Serializable
public interface Creator<T> extends java.io.Serializable
A constructor/factory, takes no parameters but creates a new value of type T every call. Supports throwingException
in the apply, which thejava.util.function.Creator
counterpart does not.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
create()
This method must return a different instance upon every call.
-
-
-
Method Detail
-
create
T create() throws java.lang.Exception
This method must return a different instance upon every call.- Throws:
java.lang.Exception
-
-