Interface ThrowingBiFunction<T,U,R,X extends Throwable>

Type Parameters:
T - the type of the first argument to the function
U - the type of the second argument to the function
X - the type of the exception thrown by the function
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,X extends Throwable> extends BiFunction<T,U,R>
An extension of BiFunction allowing throwing calls in its body.
  • Method Summary

    Modifier and Type
    Method
    Description
    default R
    apply(T t, U u)
     
    applyChecked(T t, U u)
    Applies this function to the given arguments.
    default R
    invoke(T t, U u)
    Deprecated.

    Methods inherited from interface java.util.function.BiFunction

    andThen
  • Method Details

    • applyChecked

      R applyChecked(T t, U u) throws X
      Applies this function to the given arguments.
      Parameters:
      t - the first function argument
      u - the second function argument
      Returns:
      the function result
      Throws:
      X - if an exception happens
    • invoke

      @Deprecated default R invoke(T t, U u) throws X
      Deprecated.
      Applies this function to the given arguments.
      Parameters:
      t - the first function argument
      u - the second function argument
      Returns:
      the function result
      Throws:
      X - if an exception happens
    • apply

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