FailableLongConsumer

@FunctionalInterface public interface org.apache.commons.lang3.function.FailableLongConsumer<E extends Throwable>[source]

A functional interface like LongConsumer that declares a Throwable.

Type parameters:

<E> – The kind of thrown exception or error.

Since:

3.11

Fields and constants

static final FailableLongConsumer

NOP

NOP singleton

static final FailableLongConsumer NOP[source]

NOP singleton

Methods

void

accept(long object)

Accepts the given arguments.

default FailableLongConsumer<E>

andThen(FailableLongConsumer<E> after)

Returns a composed FailableLongConsumer like LongConsumer.andThen(LongConsumer).

static <E extends Throwable> FailableLongConsumer<E>

nop()

Gets the NOP singleton.

void accept(long object) throws E[source]

Accepts the given arguments.

Parameters:

object – The parameter for the consumable to accept

Throws:

E – Thrown when the consumer fails.

default FailableLongConsumer<E> andThen(FailableLongConsumer<E> after)[source]

Returns a composed FailableLongConsumer like LongConsumer.andThen(LongConsumer).

Parameters:

after – The operation to perform after this one.

Returns:

A composed FailableLongConsumer like LongConsumer.andThen(LongConsumer).

Throws:

NullPointerException – Thrown if after is null.

static <E extends Throwable> FailableLongConsumer<E> nop()[source]

Gets the NOP singleton.

Type parameters:

<E> – The kind of thrown exception or error.

Returns:

The NOP singleton.