FailableByteConsumer
- @FunctionalInterface public interface org.apache.commons.lang3.function.FailableByteConsumer<E extends Throwable>[source]
A functional interface like
ByteConsumerthat declares aThrowable.- Type parameters:
<E> – The kind of thrown exception or error.
- Since:
3.11
Fields and constants
|
NOP singleton |
- static final FailableByteConsumer NOP[source]
NOP singleton
Methods
|
Accepts the given arguments. |
|
|
Returns a composed |
|
|
Gets the NOP singleton. |
- void accept(byte value) throws E[source]
Accepts the given arguments.
- Parameters:
value – The parameter for the consumable to accept
- Throws:
E – Thrown when the consumer fails.
- default FailableByteConsumer<E> andThen(FailableByteConsumer<E> after)[source]
Returns a composed
FailableByteConsumerlikeIntConsumer.andThen(IntConsumer).- Parameters:
after – The operation to perform after this one.
- Returns:
A composed
FailableByteConsumerlikeIntConsumer.andThen(IntConsumer).- Throws:
NullPointerException– Thrown ifafteris null.
- static <E extends Throwable> FailableByteConsumer<E> nop()[source]
Gets the NOP singleton.
- Type parameters:
<E> – The kind of thrown exception or error.
- Returns:
The NOP singleton.