ByteConsumer¶
- @FunctionalInterface public abstract interface org.apache.commons.lang3.function.ByteConsumer[source]¶
A functional interface like
IntConsumerbut forbyte.- See also:
- Since:
3.19.0
Fields and constants¶
NOP singleton |
- public static final ByteConsumer NOP[source]¶
NOP singleton
Methods¶
Accepts the given arguments. |
|
Returns a composed |
|
Gets the NOP singleton. |
- public abstract void accept(byte value)[source]¶
Accepts the given arguments.
- Parameters:
value – The input argument
- public default ByteConsumer andThen(ByteConsumer after)[source]¶
Returns a composed
ByteConsumerthat performs, in sequence, this operation followed by theafteroperation. If performing either operation throws an exception, it is relayed to the caller of the composed operation. If performing this operation throws an exception, theafteroperation will not be performed.- Parameters:
after – The operation to perform after this operation
- Returns:
A composed
ByteConsumerthat performs in sequence this operation followed by theafteroperation- Throws:
java.lang.NullPointerException – Thrown if
afteris null.
- public static ByteConsumer nop()[source]¶
Gets the NOP singleton.
- Returns:
The NOP singleton.