public final class FunctionalUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <T> java.util.function.Predicate<T> |
alwaysTrue()
Returns a
Predicate that always returns true. |
static <T> java.util.function.Predicate<T> |
not(java.util.function.Predicate<T> predicate)
Negates a
Predicate . |
public static <T> java.util.function.Predicate<T> not(java.util.function.Predicate<T> predicate)
Predicate
.T
- Value type of the predicate.predicate
- Predicate to negate.public static <T> java.util.function.Predicate<T> alwaysTrue()
Predicate
that always returns true.T
- Value that the predicate accepts.