@FunctionalInterface public interface ByteConsumer
IntConsumer but for byte.IntConsumer| Modifier and Type | Field and Description |
|---|---|
static ByteConsumer |
NOP
NOP singleton
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(byte value)
Accepts the given arguments.
|
default ByteConsumer |
andThen(ByteConsumer after)
Returns a composed
ByteConsumer that performs, in sequence, this operation followed by the after operation. |
static ByteConsumer |
nop()
Gets the NOP singleton.
|
static final ByteConsumer NOP
static ByteConsumer nop()
void accept(byte value)
value - the input argumentdefault ByteConsumer andThen(ByteConsumer after)
ByteConsumer that performs, in sequence, this operation followed by the after operation. If performing either
operation throws an exception, it is relayed to the caller of the composed operation. If performing this operation throws an exception, the after
operation will not be performed.after - the operation to perform after this operationByteConsumer that performs in sequence this operation followed by the after operationNullPointerException - if after is nullCopyright © 2001–2026 The Apache Software Foundation. All rights reserved.