Package org.apache.pekko.japi.function
Interface Function<T,R>
-
- All Superinterfaces:
java.io.Serializable
public interface Function<T,R> extends java.io.Serializable
A Function interface. Used to create first-class-functions is Java.Serializable
is needed to be able to grab line number for Java 8 lambdas. Supports throwingException
in the apply, which thejava.util.function.Function
counterpart does not.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description R
apply(T param)
-