Functions.FailableConsumer

@Deprecated @FunctionalInterface public static interface org.apache.commons.lang3.Functions.FailableConsumer<O, T extends Throwable>[source]

Deprecated: Use FailableConsumer.

A functional interface like Consumer that declares a Throwable.

TODO for 4.0: Move to org.apache.commons.lang3.function.

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

  • <T> – Thrown exception.

Methods

void

accept(O object)

Accepts the consumer.

void accept(O object) throws T[source]

Accepts the consumer.

Parameters:

object – The parameter for the consumable to accept

Throws:

T – Thrown when the consumer fails.