Interface TBiFunction<T,U,R>

Type Parameters:
T - The first argument type
U - The second argument type
R - The return 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 TBiFunction<T,U,R>
This is a functional interface that can be used to replace BiFunction and throw exceptions.
  • Method Summary

    Modifier and Type
    Method
    Description
    default <V> TBiFunction<T,U,V>
    andThen(TFunction<? super R,? extends V> after)
     
    apply(T t, U u)
    Applies this function to the given arguments and throws an exception.
  • Method Details

    • apply

      R apply(T t, U u) throws Throwable
      Applies this function to the given arguments and throws an exception.
      Parameters:
      t - The first argument
      u - The second argument
      Returns:
      The return value
      Throws:
      Throwable - The exception
    • andThen

      default <V> TBiFunction<T,U,V> andThen(TFunction<? super R,? extends V> after) throws Throwable
      Type Parameters:
      V - The return type of the after function, and of the composed function
      Parameters:
      after - The operation to perform after this operation
      Returns:
      A composed TBiFunction that performs in sequence this operation followed by the after
      Throws:
      Throwable - The exception