Predicates
- public class org.apache.commons.lang3.function.Predicates[source]
Factory for
Predicate.- Since:
3.18.0
Methods
Gets the Predicate singleton that always returns false. |
|
Gets the Predicate singleton that always returns true. |
- @SuppressWarnings({"unchecked"}) 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.
- @SuppressWarnings({"unchecked"}) 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.