Package akka.japi.function
Interface Function2<T1,T2,R>
-
- All Superinterfaces:
java.io.Serializable
public interface Function2<T1,T2,R> extends java.io.Serializable
A Function interface. Used to create 2-arg 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.BiFunction
counterpart does not.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description R
apply(T1 arg1, T2 arg2)
-