Interface BiFunction<T,​U,​R,​E extends Exception>

  • Type Parameters:
    T - The type of the first argument consumed.
    U - The type of the second argument consumed.
    R - The type of the result.
    E - The type of exception thrown.
    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 BiFunction<T,​U,​R,​E extends Exception>
    A BiFunction functional interface which can throw a checked Exception.
    • Method Detail

      • apply

        R apply​(T t,
                U u)
         throws E extends Exception
        Process the values.
        Parameters:
        t - The first value.
        u - The second value.
        Returns:
        The result.
        Throws:
        E - An exception.
        E extends Exception