Interface BiFunction<T,U,R>

Type Parameters:
T - the first input type
U - the second input type
R - the result type
All Known Subinterfaces:
BinaryOperator<T>
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>
A function of two arguments.
  • Method Summary

    Modifier and Type
    Method
    Description
    default <V> BiFunction<T,U,V>
    andThen(Function<? super R, ? extends V> after)
    This function, then after on its result.
    apply(T t, U u)
    Applies this function.
  • Method Details

    • apply

      R apply(T t, U u)
      Applies this function.
      Parameters:
      t - the first input
      u - the second input
      Returns:
      the result
    • andThen

      default <V> BiFunction<T,U,V> andThen(Function<? super R, ? extends V> after)
      This function, then after on its result.
      Type Parameters:
      V - the result type of after
      Parameters:
      after - the function applied next
      Returns:
      the composed function