@FunctionalInterface public interface IntPredicate
Predicate
| Modifier and Type | Method and Description |
|---|---|
default IntPredicate |
and(IntPredicate other)
返回一个组合的谓词,表示该谓词与另一个谓词的短路逻辑AND。
|
default IntPredicate |
negate()
返回表示此谓词的逻辑否定的谓词。
|
default IntPredicate |
or(IntPredicate other)
返回一个组合的谓词,表示该谓词与另一个谓词的短路逻辑或。
|
boolean |
test(int value)
在给定的参数上评估这个谓词。
|
boolean test(int value)
value - 输入参数
true如果输入参数与谓词匹配,否则为
false
default IntPredicate and(IntPredicate other)
false ,则不other other谓词。
在评估任一谓词期间抛出的任何异常被中继到调用者; 如果此断言的评价抛出一个异常, other断言不会被评估。
other - 将与此谓词进行逻辑与操作的谓词
other谓词
NullPointerException - 如果其他为空
default IntPredicate negate()
default IntPredicate or(IntPredicate other)
true ,那么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.