Interface Tuple2Function<A,B,R>

Type Parameters:
A - Object 1 type.
B - Object 2 type.
R - Result type.
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Tuple2Function<A,B,R>
Allows you to perform a function against 2 objects.

Same as BiFunction.

Tuple2Function<A,B,R> x = (a,b) -> doSomething(a,b); R result = x.apply(xa,xb);

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default <V> Tuple2Function<A,B,V>
    andThen(Function<? super R,? extends V> after)
     
    apply(A a, B b)