Interface TriFunctionWithException<S,​T,​U,​R,​E extends Throwable>

  • Type Parameters:
    S - type of the first argument
    T - type of the second argument
    U - type of the third argument
    R - type of the return value
    E - type of the thrown exception
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @PublicEvolving
    @FunctionalInterface
    public interface TriFunctionWithException<S,​T,​U,​R,​E extends Throwable>
    Function which takes three arguments.
    • Method Detail

      • apply

        R apply​(S s,
                T t,
                U u)
         throws E extends Throwable
        Applies this function to the given arguments.
        Parameters:
        s - the first function argument
        t - the second function argument
        u - the third function argument
        Returns:
        the function result
        Throws:
        E - if it fails
        E extends Throwable
      • unchecked

        static <A,​B,​C,​D> TriFunction<A,​B,​C,​D> unchecked​(TriFunctionWithException<A,​B,​C,​D,​?> triFunctionWithException)
        Type Parameters:
        A - first input type
        B - second input type
        C - third input type
        D - output type
        Parameters:
        triFunctionWithException - function with exception to convert into a function
        Returns:
        BiFunction which throws all checked exception as an unchecked exception.