Top Description Fields Methods
org.apache.commons.lang3.function

public Interface ByteConsumer

Annotations
@FunctionalInterface
Imports
java.util.Objects, java.util.function.IntConsumer

A functional interface like IntConsumer but for byte.
Since
3.19.0
See Also
IntConsumer

Field Summary

Modifier and TypeField and Description
public static final ByteConsumer
NOP

NOP singleton

Method Summary

Modifier and TypeMethod and Description
public void
accept(byte
the input argument
value
)

Accepts the given arguments.

public default ByteConsumer

Returns:

a composed ByteConsumer that performs in sequence this operation followed by the after operation
andThen
(final ByteConsumer
the operation to perform after this operation
after
)

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

public static ByteConsumer

Returns:

The NOP singleton.
nop
()

Gets the NOP singleton.

Field Detail

NOPback to summary
public static final ByteConsumer NOP

NOP singleton

Method Detail

acceptback to summary
public void accept(byte value)

Accepts the given arguments.

Parameters
value:byte

the input argument

andThenback to summary
public default ByteConsumer andThen(final ByteConsumer after)

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

the operation to perform after this operation

Returns:ByteConsumer

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

Exceptions
NullPointerException:
if after is null
nopback to summary
public static ByteConsumer nop()

Gets the NOP singleton.

Returns:ByteConsumer

The NOP singleton.