Predicates

public class org.apache.commons.lang3.function.Predicates[source]

Factory for Predicate.

Since:

3.18.0

Methods

static <T> Predicate<T>

falsePredicate()

Gets the Predicate singleton that always returns false.

static <T> Predicate<T>

truePredicate()

Gets the Predicate singleton that always returns true.

public static <T> Predicate<T> falsePredicate()[source]

Gets the Predicate singleton that always returns false.

Type parameters:

<T> – The type of the input to the predicate.

Returns:

The Predicate singleton.

public static <T> Predicate<T> truePredicate()[source]

Gets the Predicate singleton that always returns true.

Type parameters:

<T> – The type of the input to the predicate.

Returns:

The Predicate singleton.