Interface BiFunctionWithException<T,​U,​R,​E extends Throwable>

  • Type Parameters:
    T - type of the first parameter
    U - type of the second parameter
    R - type of the return type
    E - type of the exception which can be thrown
    All Known Subinterfaces:
    ChangelogBackendRestoreOperation.ChangelogRestoreTargetBuilder<K>
    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 BiFunctionWithException<T,​U,​R,​E extends Throwable>
    BiFunction interface which can throw exceptions.
    • Method Detail

      • apply

        R apply​(T t,
                U u)
         throws E extends Throwable
        Apply the given values t and u to obtain the resulting value. The operation can throw an exception.
        Parameters:
        t - first parameter
        u - second parameter
        Returns:
        result value
        Throws:
        E - if the operation fails
        E extends Throwable
      • unchecked

        static <A,​B,​C> BiFunction<A,​B,​C> unchecked​(BiFunctionWithException<A,​B,​C,​?> biFunctionWithException)
        Type Parameters:
        A - input type
        B - output type
        Parameters:
        biFunctionWithException - function with exception to convert into a function
        Returns:
        BiFunction which throws all checked exception as an unchecked exception.