Package akka.japi.function
Interface Function2<T1,T2,R>
-
- All Superinterfaces:
java.io.Serializable
public interface Function2<T1,T2,R> extends java.io.SerializableA Function interface. Used to create 2-arg first-class-functions is Java.Serializableis needed to be able to grab line number for Java 8 lambdas. Supports throwingExceptionin the apply, which thejava.util.function.BiFunctioncounterpart does not.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Rapply(T1 arg1, T2 arg2)
-