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 throwing Exception in the apply, which the java.util.function.BiFunction counterpart does not.