Interface BiConsumerWithException<T,​U>

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

    @Deprecated
    @FunctionalInterface
    public interface BiConsumerWithException<T,​U>
    Deprecated.
    BiConsumer interface that allows exceptions.
    • Method Detail

      • accept

        void accept​(T t,
                    U u)
             throws java.lang.Exception
        Deprecated.
        Throws:
        java.lang.Exception
      • orElseThrow

        default java.util.function.BiConsumer<T,​U> orElseThrow()
        Deprecated.
      • ignoreException

        default java.util.function.BiConsumer<T,​U> ignoreException()
        Deprecated.
      • asBiConsumer

        static <T,​U> java.util.function.BiConsumer<T,​U> asBiConsumer​(BiConsumerWithException<T,​U> unchecked)
        Deprecated.
      • asBiConsumerIgnoreException

        static <T,​U> java.util.function.BiConsumer<T,​U> asBiConsumerIgnoreException​(BiConsumerWithException<T,​U> unchecked)
        Deprecated.