public interface Predicate<T>
Modifier and Type | Method and Description |
---|---|
default Predicate<T> |
and(Predicate<? super T> other)
Returns a composed predicate that represents a short-circuiting logical AND of this predicate
and another.
|
default Predicate<T> |
negate()
Returns a predicate that represents the logical negation of this predicate.
|
default Predicate<T> |
or(Predicate<? super T> other)
Returns a composed predicate that represents a short-circuiting logical OR of this predicate
and another.
|
boolean |
test(T arg)
Evaluates this predicate on the given argument.
|
boolean test(T arg)
arg
- the input argumentdefault Predicate<T> or(Predicate<? super T> other)
other
- a predicate that will be logically-ORed with this predicatedefault Predicate<T> and(Predicate<? super T> other)
other
- a predicate that will be logically-ANDed with this predicate6.0.0