接口 Predicates
-
public interface PredicatesThe utilities class for JavaPredicate- 从以下版本开始:
- 2.7.5
-
-
字段概要
字段 修饰符和类型 字段 说明 static Predicate[]EMPTY_ARRAY
-
方法概要
静态方法 修饰符和类型 方法 说明 static <T> Predicate<T>alwaysFalse()Predicatealways returnfalsestatic <T> Predicate<T>alwaysTrue()Predicatealways returntruestatic <T> Predicate<T>and(Predicate<T>... predicates)a composed predicate that represents a short-circuiting logical AND ofpredicatesstatic <T> Predicate<T>or(Predicate<T>... predicates)a composed predicate that represents a short-circuiting logical OR ofpredicates
-
-
-
字段详细资料
-
EMPTY_ARRAY
static final Predicate[] EMPTY_ARRAY
-
-
方法详细资料
-
alwaysTrue
static <T> Predicate<T> alwaysTrue()
Predicatealways returntrue- 类型参数:
T- the type to test- 返回:
true
-
alwaysFalse
static <T> Predicate<T> alwaysFalse()
Predicatealways returnfalse- 类型参数:
T- the type to test- 返回:
false
-
and
static <T> Predicate<T> and(Predicate<T>... predicates)
a composed predicate that represents a short-circuiting logical AND ofpredicates- 类型参数:
T- the type to test- 参数:
predicates-predicates- 返回:
- non-null
-
or
static <T> Predicate<T> or(Predicate<T>... predicates)
a composed predicate that represents a short-circuiting logical OR ofpredicates- 类型参数:
T- the detected type- 参数:
predicates-predicates- 返回:
- non-null
-
-