FailableBiConsumer
- @FunctionalInterface public interface org.apache.commons.lang3.function.FailableBiConsumer<T, U, E extends Throwable>[source]
A functional interface like
BiConsumerthat declares aThrowable.- Type parameters:
<T> – Consumed type 1.
<U> – Consumed type 2.
<E> – The kind of thrown exception or error.
- Since:
3.11
Fields and constants
|
NOP singleton |
- static final FailableBiConsumer NOP[source]
NOP singleton
Methods
|
Accepts the given arguments. |
|
|
Returns a composed |
|
|
Gets the NOP singleton. |
- void accept(T t, U u) throws E[source]
Accepts the given arguments.
- Parameters:
t – The first parameter for the consumable to accept
u – The second parameter for the consumable to accept
- Throws:
E – Thrown when the consumer fails.
- default FailableBiConsumer<T, U, E> andThen(FailableBiConsumer<? super T, ? super U, E> after)[source]
Returns a composed
FailableBiConsumerlikeBiConsumer.andThen(BiConsumer).- Parameters:
after – The operation to perform after this one.
- Returns:
A composed
FailableBiConsumerlikeBiConsumer.andThen(BiConsumer).- Throws:
NullPointerException– Thrown whenafteris null.
- static <T, U, E extends Throwable> FailableBiConsumer<T, U, E> nop()[source]
Gets the NOP singleton.
- Type parameters:
<T> – Consumed type 1.
<U> – Consumed type 2.
<E> – The kind of thrown exception or error.
- Returns:
The NOP singleton.