java.util.function · java.base · since Java 1.8
BiFunction
@FunctionalInterface
public interface BiFunction<T, U, R>(T, U) → R — the two-argument Function, seen in Map.merge and compute. BinaryOperator<T> is its same-type specialization.
Key methods
R apply(T t, U u) | The transformation. |