Interface BiConsumerEx<T,​U>

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

    public interface BiConsumerEx<T,​U>
    extends java.util.function.BiConsumer<T,​U>,
    Serializable variant of java.util.function.BiConsumer which declares checked exception.
    • Method Detail

      • acceptEx

        void acceptEx​(T t,
                      U u)
               throws java.lang.Exception
        Exception-declaring version of BiConsumer.accept(T, U).
        java.lang.Exception - in case of any exceptional case
      • accept

        default void accept​(T t,
                            U u)
        Specified by:
        accept in interface java.util.function.BiConsumer<T,​U>
      • andThen

        default BiConsumerEx<T,​U> andThen​(BiConsumerEx<? super T,​? super U> after)
        Serializable variant of java.util.function.BiConsumer#andThen(BiConsumer).