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

public Interface FailableByteConsumer<E extends Throwable>

Annotations
@FunctionalInterface
Type Parameters
<E>
The kind of thrown exception or error.
Imports
java.util.Objects, java.util.function.IntConsumer

A functional interface like ByteConsumer that declares a Throwable.
Since
3.11

Field Summary

Modifier and TypeField and Description
public static final FailableByteConsumer<E extends Throwable>
NOP

NOP singleton

Method Summary

Modifier and TypeMethod and Description
public void
accept(byte
the parameter for the consumable to accept
value
)

Accepts the given arguments.

public default FailableByteConsumer<E>
andThen(final FailableByteConsumer<E>
the operation to perform after this one.
after
)

Returns a composed FailableByteConsumer like IntConsumer#andThen(IntConsumer).

public static <
The kind of thrown exception or error.
E extends Throwable
>
FailableByteConsumer<E>

Returns:

The NOP singleton.
nop
()

Gets the NOP singleton.

Field Detail

NOPback to summary
public static final FailableByteConsumer<E extends Throwable> NOP

NOP singleton

Annotations
@SuppressWarnings:rawtypes

Method Detail

acceptback to summary
public void accept(byte value) throws E

Accepts the given arguments.

Parameters
value:byte

the parameter for the consumable to accept

Exceptions
E:
Thrown when the consumer fails.
andThenback to summary
public default FailableByteConsumer<E> andThen(final FailableByteConsumer<E> after)

Returns a composed FailableByteConsumer like IntConsumer#andThen(IntConsumer).

Parameters
after:FailableByteConsumer<E>

the operation to perform after this one.

Returns:FailableByteConsumer<E>

a composed FailableByteConsumer like IntConsumer#andThen(IntConsumer).

Exceptions
NullPointerException:
if after is null
nopback to summary
public static <E extends Throwable> FailableByteConsumer<E> nop()

Gets the NOP singleton.

Parameters
<E>
The kind of thrown exception or error.
Returns:FailableByteConsumer<E>

The NOP singleton.

Annotations
@SuppressWarnings:unchecked