Interface Functions.FailableBiConsumer<O1,​O2,​T extends Throwable>

  • Type Parameters:
    O1 - Consumed type 1.
    O2 - Consumed type 2.
    T - Thrown exception.
    Enclosing class:
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    public static interface Functions.FailableBiConsumer<O1,​O2,​T extends Throwable>
    A functional interface like BiConsumer that declares a Throwable.

    TODO for 4.0: Move to org.apache.commons.lang3.function.

    • Method Detail

      • accept

        void accept​(O1 object1,
                    O2 object2)
             throws T extends Throwable
        Accepts the consumer.
        object1 - the first parameter for the consumable to accept
        object2 - the second parameter for the consumable to accept
        T - Thrown when the consumer fails.
        T extends Throwable