On this page

ByteConsumer

@FunctionalInterface public interface org.apache.commons.lang3.function.ByteConsumer[source]

A functional interface like IntConsumer but for byte.

Since:

3.19.0

See also:

IntConsumer

Fields and constants

static final ByteConsumer

NOP

NOP singleton

static final ByteConsumer NOP[source]

NOP singleton

Methods

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.

void accept(byte value)[source]

Accepts the given arguments.

Parameters:

value – The input argument

default ByteConsumer andThen(ByteConsumer after)[source]

Returns a composed 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.

Parameters:

after – The operation to perform after this operation

Returns:

A composed ByteConsumer that performs in sequence this operation followed by the after operation

Throws:

NullPointerException – Thrown if after is null.

static ByteConsumer nop()[source]

Gets the NOP singleton.

Returns:

The NOP singleton.