@FunctionalInterface public interface IntPredicate
int-valued论点。这是
int-consuming原生型专业化
这是一个functional interface其功能的方法是test(int)。
Predicate。
Predicate
| Modifier and Type | Method and Description |
|---|---|
default IntPredicate |
and(IntPredicate other)
返回一个由谓词表示短路逻辑和谓词和另一个。
|
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 -谓语,将逻辑AND这个谓词
other
NullPointerException -如果其他是空的
default IntPredicate negate()
default IntPredicate or(IntPredicate other)
true,然后
other谓词不评价。
抛出的任何异常或谓词评估过程中传递给调用者;如果该谓词评价抛出一个异常,这other谓词将不进行评估。
other -谓语,将逻辑或与该谓词
other
NullPointerException -如果其他是空的
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.