FailableBiConsumer

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

A functional interface like BiConsumer that declares a Throwable.

Type parameters:
  • <T> – Consumed type 1.

  • <U> – Consumed type 2.

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

Since:

3.11

Fields and constants

static final FailableBiConsumer

NOP

NOP singleton

static final FailableBiConsumer NOP[source]

NOP singleton

Methods

void

accept(T t, U u)

Accepts the given arguments.

default FailableBiConsumer<T, U, E>

andThen(FailableBiConsumer<? super T, ? super U, E> after)

Returns a composed FailableBiConsumer like BiConsumer.andThen(BiConsumer).

static <T, U, E extends Throwable> FailableBiConsumer<T, U, E>

nop()

Gets the NOP singleton.

void accept(T t, U u) throws E[source]

Accepts the given arguments.

Parameters:
  • t – The first parameter for the consumable to accept

  • u – The second parameter for the consumable to accept

Throws:

E – Thrown when the consumer fails.

default FailableBiConsumer<T, U, E> andThen(FailableBiConsumer<? super T, ? super U, E> after)[source]

Returns a composed FailableBiConsumer like BiConsumer.andThen(BiConsumer).

Parameters:

after – The operation to perform after this one.

Returns:

A composed FailableBiConsumer like BiConsumer.andThen(BiConsumer).

Throws:

NullPointerException – Thrown when after is null.

static <T, U, E extends Throwable> FailableBiConsumer<T, U, E> nop()[source]

Gets the NOP singleton.

Type parameters:
  • <T> – Consumed type 1.

  • <U> – Consumed type 2.

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

Returns:

The NOP singleton.