FailableObjIntConsumer¶
- @FunctionalInterface public abstract interface org.apache.commons.lang3.function.FailableObjIntConsumer<T, E extends Throwable>[source]¶
A functional interface like
ObjIntConsumerthat 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 FailableObjIntConsumer NOP[source]¶
NOP singleton
Methods¶
Accepts the given arguments. |
|
Gets the NOP singleton. |
- public abstract void accept(T object, int value) throws E[source]¶
Accepts the given arguments.
- Parameters:
object – The object parameter for the consumable to accept.
value – The int parameter for the consumable to accept.
- Throws:
E – Thrown when the consumer fails.
- @SuppressWarnings({"unchecked"}) public static <T, E extends Throwable> FailableObjIntConsumer<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.