Interface TriFunction<T,​U,​V,​R>

  • Type Parameters:
    T - the type of the first object parameter
    U - the type of the second object parameter
    V - the type of the third object parameter
    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.

    public interface TriFunction<T,​U,​V,​R>
    A function that takes three arguments.
    • Method Detail

      • apply

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

        default <S> TriFunction<T,​U,​V,​S> andThen​(Function<? super R,​? extends S> after)
        Returns a new function that composes this function and the specified function.

        This returns a composed function that applies the input to this function and then converts the result using the specified function.

        Type Parameters:
        S - the type of the resulting function
        after - the function to combine with
        the combined function, "this AND_THEN that"