Class Predicates
- java.lang.Object
-
- org.apache.commons.lang3.function.Predicates
-
public class Predicates extends java.lang.Object
Factory forPredicate
.- Since:
- 3.18.0
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> java.util.function.Predicate<T>
falsePredicate()
Gets the Predicate singleton that always returns false.static <T> java.util.function.Predicate<T>
truePredicate()
Gets the Predicate singleton that always returns true.
-
-
-
Method Detail
-
falsePredicate
public static <T> java.util.function.Predicate<T> falsePredicate()
Gets the Predicate singleton that always returns false.- Type Parameters:
T
- the type of the input to the predicate.- Returns:
- the Predicate singleton.
-
truePredicate
public static <T> java.util.function.Predicate<T> truePredicate()
Gets the Predicate singleton that always returns true.- Type Parameters:
T
- the type of the input to the predicate.- Returns:
- the Predicate singleton.
-
-