ByteConsumer

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

A functional interface like IntConsumer but for byte.

See also:

IntConsumer

Since:

3.19.0

Fields and constants

NOP

NOP singleton

public static final ByteConsumer NOP[source]

NOP singleton

Methods

accept(byte)

Accepts the given arguments.

andThen(ByteConsumer)

Returns a composed ByteConsumer that performs, in sequence, this operation followed by the after operation.

nop()

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 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:

java.lang.NullPointerException – Thrown if after is null.

public static ByteConsumer nop()[source]

Gets the NOP singleton.

Returns:

The NOP singleton.