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