public interface Predicates
Predicate| Modifier and Type | Field and Description |
|---|---|
static Predicate[] |
EMPTY_ARRAY |
| Modifier and Type | Method and Description |
|---|---|
static <T> Predicate<T> |
alwaysFalse()
Predicate always return false |
static <T> Predicate<T> |
alwaysTrue()
Predicate always return true |
static <T> Predicate<T> |
and(Predicate<T>... predicates)
a composed predicate that represents a short-circuiting logical AND of
predicates |
static <T> Predicate<T> |
or(Predicate<T>... predicates)
a composed predicate that represents a short-circuiting logical OR of
predicates |
static final Predicate[] EMPTY_ARRAY
static <T> Predicate<T> alwaysTrue()
Predicate always return trueT - the type to testtruestatic <T> Predicate<T> alwaysFalse()
Predicate always return falseT - the type to testfalsestatic <T> Predicate<T> and(Predicate<T>... predicates)
predicatesT - the type to testpredicates - predicatesstatic <T> Predicate<T> or(Predicate<T>... predicates)
predicatesT - the detected typepredicates - predicatesCopyright © 2011–2022 The Apache Software Foundation. All rights reserved.