FailableObjIntConsumer

@FunctionalInterface public abstract interface org.apache.commons.lang3.function.FailableObjIntConsumer<T, E extends Throwable>[source]

A functional interface like ObjIntConsumer that declares a Throwable.

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

NOP singleton

@SuppressWarnings({"rawtypes"}) public static final FailableObjIntConsumer NOP[source]

NOP singleton

Methods

accept(Object, int)

Accepts the given arguments.

nop()

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.