接口 Predicates
-
public interface Predicates
The utilities class for JavaPredicate
- 从以下版本开始:
- 1.0.0
-
-
字段概要
字段 修饰符和类型 字段 说明 static java.util.function.Predicate[]
EMPTY_PREDICATE_ARRAY
-
方法概要
静态方法 修饰符和类型 方法 说明 static <T> java.util.function.Predicate<T>
alwaysFalse()
Predicate
always returnfalse
static <T> java.util.function.Predicate<T>
alwaysTrue()
Predicate
always returntrue
static <T> java.util.function.Predicate<? super T>
and(java.util.function.Predicate<? super T>... predicates)
a composed predicate that represents a short-circuiting logical AND ofpredicates
static <T> java.util.function.Predicate<T>[]
emptyArray()
static <T> java.util.function.Predicate<? super T>
or(java.util.function.Predicate<? super T>... predicates)
a composed predicate that represents a short-circuiting logical OR ofpredicates
-
-
-
方法详细资料
-
emptyArray
static <T> java.util.function.Predicate<T>[] emptyArray()
-
alwaysTrue
static <T> java.util.function.Predicate<T> alwaysTrue()
Predicate
always returntrue
- 类型参数:
T
- the type to test- 返回:
true
-
alwaysFalse
static <T> java.util.function.Predicate<T> alwaysFalse()
Predicate
always returnfalse
- 类型参数:
T
- the type to test- 返回:
false
-
and
static <T> java.util.function.Predicate<? super T> and(java.util.function.Predicate<? super 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> java.util.function.Predicate<? super T> or(java.util.function.Predicate<? super T>... predicates)
a composed predicate that represents a short-circuiting logical OR ofpredicates
- 类型参数:
T
- the detected type- 参数:
predicates
-predicates
- 返回:
- non-null
-
-