T - The type of the input to the predicatepublic interface Predicate1<T>
extends java.util.function.Predicate<T>
Predicate to allow boxing of
the interface.
This is a functional interface whose functional method is
Predicate.test(Object).
Predicate| Modifier and Type | Method and Description |
|---|---|
default Predicate1<T> |
and(java.util.function.Predicate<? super T> other) |
default java.util.function.Function<T,java.lang.Boolean> |
boxed()
Returns a
Function with the result boxed to a Boolean. |
default Predicate1<T> |
negate() |
default Predicate1<T> |
or(java.util.function.Predicate<? super T> other) |
static <T> Predicate1<T> |
wrap(java.util.function.Predicate<T> predicate)
Wraps a predicate instance to provide library features for
Predicate. |
static <T> Predicate1<T> wrap(java.util.function.Predicate<T> predicate)
Predicate.T - The type of the input to the predicatepredicate - The predicate instance to be wrappedPredicate1default Predicate1<T> and(java.util.function.Predicate<? super T> other)
and in interface java.util.function.Predicate<T>default Predicate1<T> negate()
negate in interface java.util.function.Predicate<T>default Predicate1<T> or(java.util.function.Predicate<? super T> other)
or in interface java.util.function.Predicate<T>default java.util.function.Function<T,java.lang.Boolean> boxed()
Function with the result boxed to a Boolean.Function with the result boxed to a BooleanFunction