On this page

FailableIntConsumer

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

A functional interface like IntConsumer that declares a Throwable.

Type parameters:

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

Since:

3.11

Fields and constants

static final FailableIntConsumer

NOP

NOP singleton

static final FailableIntConsumer NOP[source]

NOP singleton

Methods

void

accept(int value)

Accepts the given arguments.

default FailableIntConsumer<E>

andThen(FailableIntConsumer<E> after)

Returns a composed FailableIntConsumer like IntConsumer.andThen(IntConsumer).

static <E extends Throwable> FailableIntConsumer<E>

nop()

Gets the NOP singleton.

void accept(int value) throws E[source]

Accepts the given arguments.

Parameters:

value – The parameter for the consumable to accept

Throws:

E – Thrown when the consumer fails.

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

Returns a composed FailableIntConsumer like IntConsumer.andThen(IntConsumer).

Parameters:

after – The operation to perform after this one.

Returns:

A composed FailableIntConsumer like IntConsumer.andThen(IntConsumer).

Throws:

NullPointerException – Thrown if after is null.

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

Gets the NOP singleton.

Type parameters:

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

Returns:

The NOP singleton.