Interface ThrowingFunction2<T0,​T1,​R>

  • Type Parameters:
    T0 - the type of the #0 argument.
    T1 - the type of the #1 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 ThrowingFunction2<T0,​T1,​R>
    A binary function which may throw a throwable.
    • Method Detail

      • apply

        R apply​(T0 a0,
                T1 a1)
         throws Throwable
        Applies the function to the given argument.
        Parameters:
        a0 - the #0 argument.
        a1 - the #1 argument.
        Returns:
        the result of the function.
        Throws:
        Throwable - if anything is thrown.