On this page

FailableObjLongConsumer

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

A functional interface like ObjLongConsumer 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 FailableObjLongConsumer NOP[source]

NOP singleton

Methods

accept(Object, long)

Accepts the given arguments.

nop()

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.