On this page

Functions.FailablePredicate

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

Deprecated: Use FailablePredicate.

A functional interface like Predicate that declares a Throwable.

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

Type parameters:
  • <I> – Predicate type 1.

  • <T> – Thrown exception.

Methods

boolean

test(I object)

Tests the predicate.

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.