FailableLongConsumer¶
- @FunctionalInterface public abstract interface org.apache.commons.lang3.function.FailableLongConsumer<E extends Throwable>[source]¶
A functional interface like
LongConsumerthat declares aThrowable.- Parameters:
<E> – The kind of thrown exception or error.
- Since:
3.11
Fields and constants¶
NOP singleton |
- @SuppressWarnings({"rawtypes"}) public static final FailableLongConsumer NOP[source]¶
NOP singleton
Methods¶
Accepts the given arguments. |
|
Returns a composed |
|
Gets the NOP singleton. |
- public abstract void accept(long object) throws E[source]¶
Accepts the given arguments.
- Parameters:
object – The parameter for the consumable to accept
- Throws:
E – Thrown when the consumer fails.
- public default FailableLongConsumer<E> andThen(FailableLongConsumer<E> after)[source]¶
Returns a composed
FailableLongConsumerlikeLongConsumer#andThen(LongConsumer).- Parameters:
after – The operation to perform after this one.
- Returns:
A composed
FailableLongConsumerlikeLongConsumer#andThen(LongConsumer).- Throws:
java.lang.NullPointerException – Thrown if
afteris null.
- @SuppressWarnings({"unchecked"}) public static <E extends Throwable> FailableLongConsumer<E> nop()[source]¶
Gets the NOP singleton.
- Type parameters:
<E> – The kind of thrown exception or error.
- Returns:
The NOP singleton.