T - the keyType of elements maintained by this Collection@FunctionalInterface
public interface Predicate<T>
extends java.util.function.Predicate<T>
| Modifier and Type | Method and Description |
|---|---|
static <T> Predicate<T> |
alwaysFalse()
Creates a Always false function that may be useful if you don't need to process information or just want a default.
|
static <T> Predicate<T> |
alwaysTrue()
Creates a Always true function that may be useful if you don't need to process information or just want a default.
|
default Predicate<T> |
and(java.util.function.Predicate<? super T> other)
Deprecated.
|
default Predicate<T> |
andType(Predicate<T> other)
A Type specific and-function helper function that reduces boxing/unboxing
|
default Predicate<T> |
negate() |
default Predicate<T> |
or(java.util.function.Predicate<? super T> other)
Deprecated.
|
default Predicate<T> |
orType(Predicate<T> other)
A Type specific or-function helper function that reduces boxing/unboxing
|
boolean |
test(T k)
Type Specific get function to reduce boxing/unboxing
|
boolean test(T k)
test in interface java.util.function.Predicate<T>k - the value that should be processedstatic <T> Predicate<T> alwaysTrue()
T - the keyType of elements maintained by this Collectionstatic <T> Predicate<T> alwaysFalse()
T - the keyType of elements maintained by this Collectiondefault Predicate<T> andType(Predicate<T> other)
other - the other function that should be merged with.@Deprecated default Predicate<T> and(java.util.function.Predicate<? super T> other)
and in interface java.util.function.Predicate<T>default Predicate<T> negate()
negate in interface java.util.function.Predicate<T>default Predicate<T> orType(Predicate<T> other)
other - the other function that should be merged with.