On this page

FailableObjDoubleConsumer

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

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

NOP singleton

Methods

accept(Object, double)

Accepts the given arguments.

nop()

Gets the NOP singleton.

public abstract void accept(T object, double value) throws E[source]

Accepts the given arguments.

Parameters:
  • object – The object parameter for the consumable to accept.

  • value – The double parameter for the consumable to accept.

Throws:

E – Thrown when the consumer fails.

@SuppressWarnings({"unchecked"}) public static <T, E extends Throwable> FailableObjDoubleConsumer<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.