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

Type Parameters:
T - first argument type
U - second argument type
R - return type
E - exception type
All Superinterfaces:
BiFunction<T,U,R>
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 ThrowingBiFunction<T, U, R, E extends Exception> extends BiFunction<T,U,R>
A BiFunction which may throw a checked exception.
  • Method Summary

    Modifier and Type
    Method
    Description
    default R
    apply(T t, U u)
     
    applyThrowing(T t, U u)
    Invokes the bi-function.

    Methods inherited from interface BiFunction

    andThen
  • Method Details

    • applyThrowing

      R applyThrowing(T t, U u) throws E
      Invokes the bi-function.
      Parameters:
      t - first argument
      u - second argument
      Returns:
      result
      Throws:
      E - if an exception of type E occurs during invocation
    • apply

      default R apply(T t, U u)
      Specified by:
      apply in interface BiFunction<T,U,R>