Functions.FailablePredicate

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

A functional interface like Predicate that declares a Throwable.

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

Parameters:
  • <I> – Predicate type 1.

  • <T> – Thrown exception.

Methods

test(Object)

Tests the predicate.

public abstract boolean test(I object) throws T[source]

Tests the predicate.

Parameters:

object – The object to test the predicate on

Returns:

The predicate’s evaluation

Throws:

T – Thrown if the predicate fails.