Interface TriFunction<T,U,V,R>

Type Parameters:
T - The type of the first argument
U - The type of the second argument
V - The type of the third argument
R - The type of the result
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>
Functional interface that takes three arguments and returns a value.
The FunctionalInterface method is apply(Object, Object, Object).
  • Method Summary

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

    • apply

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

      @NotNull default <S> @NotNull TriFunction<T,U,V,S> andThen(@NotNull @NotNull Function<? super R,? extends S> after)
      Returns a composed function that first applies this function to its input,
      and then applies the after function to the result.
      Type Parameters:
      S - The type of the output of the after function, and of the composed function
      Parameters:
      after - The function to apply after this function is applied
      Returns:
      The composed function
      Throws:
      NullPointerException - If the after function is null