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:
    java.util.function.BiConsumer<T,​U>, java.io.Serializable
    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 BiConsumerEx<T,​U>
    extends java.util.function.BiConsumer<T,​U>, java.io.Serializable
    Serializable variant of java.util.function.BiConsumer which declares checked exception.
    Since:
    4.0
    • Method Detail

      • acceptEx

        void acceptEx​(T t,
                      U u)
               throws java.lang.Exception
        Exception-declaring version of BiConsumer.accept(T, U).
        Throws:
        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).