FailableObjLongConsumer
- @FunctionalInterface public abstract interface org.apache.commons.lang3.function.FailableObjLongConsumer<T, E extends Throwable>[source]
A functional interface like
ObjLongConsumerthat declares aThrowable.- Parameters:
<T> – The type of the object argument to the operation.
<E> – The kind of thrown exception or error.
- Since:
3.11
Fields and constants
NOP singleton |
- @SuppressWarnings({"rawtypes"}) public static final FailableObjLongConsumer NOP[source]
NOP singleton
Methods
Accepts the given arguments. |
|
Gets the NOP singleton. |
- public abstract void accept(T object, long value) throws E[source]
Accepts the given arguments.
- Parameters:
object – The object parameter for the consumable to accept.
value – The long parameter for the consumable to accept.
- Throws:
E – Thrown when the consumer fails.
- @SuppressWarnings({"unchecked"}) public static <T, E extends Throwable> FailableObjLongConsumer<T, E> nop()[source]
Gets the NOP singleton.
- Type parameters:
<T> – The type of the object argument to the operation.
<E> – The kind of thrown exception or error.
- Returns:
The NOP singleton.