Interface TriFunction<T,U,V,R>

Type Parameters:
T - first argument type
U - second argument type
V - third argument type
R - result 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 TriFunction<T,U,V,R>
Three-argument variant of Function.
  • Method Summary

    Modifier and Type
    Method
    Description
    default <K> TriFunction<T,U,V,K>
    andThen(Function<? super R, ? extends K> after)
    Returns a composed TriFunction that first applies this function and then applies after to the result.
    apply(T t, U u, V v)
    Applies this function to the given arguments.
  • Method Details

    • apply

      R apply(T t, U u, V v)
      Applies this function to the given arguments.
      Parameters:
      t - first argument
      u - second argument
      v - third argument
      Returns:
      the function result
    • andThen

      default <K> TriFunction<T,U,V,K> andThen(Function<? super R, ? extends K> after)
      Returns a composed TriFunction that first applies this function and then applies after to the result.
      Type Parameters:
      K - result type of the composed function
      Parameters:
      after - function applied to the result of this function
      Returns:
      the composed function