软件包 | 描述 |
---|---|
java.util.function |
功能接口提供目标类型的lambda表达式和方法参考。
|
java.util.stream |
类,以支持元素流上的功能样式操作,如Map减少集合上的转换。
|
Modifier and Type | Method and Description |
---|---|
default LongPredicate |
LongPredicate.and(LongPredicate other)
返回一个由谓词表示短路逻辑和谓词和另一个。
|
default LongPredicate |
LongPredicate.negate()
返回一个表示该谓词的逻辑否定的谓词。
|
default LongPredicate |
LongPredicate.or(LongPredicate other)
返回一个由谓词表示短路逻辑或该谓词和另一个。
|
Modifier and Type | Method and Description |
---|---|
default LongPredicate |
LongPredicate.and(LongPredicate other)
返回一个由谓词表示短路逻辑和谓词和另一个。
|
default LongPredicate |
LongPredicate.or(LongPredicate other)
返回一个由谓词表示短路逻辑或该谓词和另一个。
|
Modifier and Type | Method and Description |
---|---|
boolean |
LongStream.allMatch(LongPredicate predicate)
返回此流中的所有元素是否匹配所提供的谓词。
|
boolean |
LongStream.anyMatch(LongPredicate predicate)
返回此流中的任何元素是否匹配所提供的谓词。
|
LongStream |
LongStream.filter(LongPredicate predicate)
返回由该流的元素组成的流,该元素与给定的谓词匹配。
|
boolean |
LongStream.noneMatch(LongPredicate predicate)
返回此流中的任何元素是否匹配所提供的谓词。
|
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.