Interface ExceptionToLongBiFunction<T,U,E extends Exception>

Type Parameters:
T - the first argument type
U - the second argument type
E - the exception 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 ExceptionToLongBiFunction<T,U,E extends Exception>
A two-argument function which can throw an exception.
  • Method Summary

    Modifier and Type
    Method
    Description
    default <R> ExceptionBiFunction<T,U,R,E>
    Returns a function which applies the result of this function to the given function.
    long
    apply(T t, U u)
    Apply this function to the given arguments.
  • Method Details

    • apply

      long apply(T t, U u) throws E
      Apply this function to the given arguments.
      Parameters:
      t - the first argument
      u - the second argument
      Returns:
      the function result
      Throws:
      E - if an exception occurs
    • andThen

      default <R> ExceptionBiFunction<T,U,R,E> andThen(ExceptionLongFunction<R,E> after)
      Returns a function which applies the result of this function to the given function.
      Type Parameters:
      R - the final result type
      Parameters:
      after - the next function (must not be null)
      Returns:
      a function which applies the result of this function to the given function