Interface BiFunction<T,U,R,E extends Exception>

Type Parameters:
T - The type of the first argument consumed.
U - The type of the second argument consumed.
R - The type of the result.
E - The type of exception thrown.
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 BiFunction<T,U,R,E extends Exception>
A BiFunction functional interface which can throw a checked Exception.
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(T t, U u)
    Process the values.
  • Method Details

    • apply

      R apply(T t, U u) throws E
      Process the values.
      Parameters:
      t - The first value.
      u - The second value.
      Returns:
      The result.
      Throws:
      E - An exception.