Interface Function4<T1,​T2,​T3,​T4,​R>

  • Type Parameters:
    T1 - The type of the first argument.
    T2 - The type of the second argument.
    T3 - The type of the third argument.
    T4 - The type of the fourth argument.
    R - The result of the function.
    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 Function4<T1,​T2,​T3,​T4,​R>
    A functional interface that accepts 4 arguments and generates a return value.
    • Method Detail

      • apply

        @Nullable
        R apply​(@Nullable
                T1 t1,
                @Nullable
                T2 t2,
                @Nullable
                T3 t3,
                @Nullable
                T4 t4)
        Applies the function to the given arguments.
        Parameters:
        t1 - the first value.
        t2 - the second value.
        t3 - the third value.
        t4 - the fourth value.
        Returns:
        the result value.