@FunctionalInterface public interface LongPredicate
Predicate
| Modifier and Type | Method and Description |
|---|---|
default LongPredicate |
and(LongPredicate other)
返回一个组合的谓词,表示该谓词与另一个谓词的短路逻辑AND。
|
default LongPredicate |
negate()
返回表示此谓词的逻辑否定的谓词。
|
default LongPredicate |
or(LongPredicate other)
返回一个组合的谓词,表示该谓词与另一个谓词的短路逻辑或。
|
boolean |
test(long value)
在给定的参数上评估这个谓词。
|
boolean test(long value)
value - 输入参数
true如果输入参数与谓词匹配,否则为
false
default LongPredicate and(LongPredicate other)
false ,则不other other谓词。
在评估任一谓词期间抛出的任何异常被中继到调用者; 如果此断言的评价抛出一个异常, other断言不会被评估。
other - 将与此谓词进行逻辑AND的谓词
other谓词
NullPointerException - 如果其他为空
default LongPredicate negate()
default LongPredicate or(LongPredicate other)
true ,则不other other谓词。
在评估任一谓词期间抛出的任何异常被中继到调用者; 如果此断言的评价抛出一个异常, other断言不会被评估。
other - 与该谓词进行逻辑关系的谓词
other谓词
NullPointerException - 如果其他为null
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.