软件包 | 描述 |
---|---|
java.util |
包含集合框架、遗留的集合类、事件模型、日期和时间的设施、国际化和各种实用工具类(一个字符串标记,一个随机数发生器,和一位阵列)。
|
java.util.stream |
类,以支持元素流上的功能样式操作,如Map减少集合上的转换。
|
Modifier and Type | Method and Description |
---|---|
static OptionalLong |
OptionalLong.empty()
返回一个空
OptionalLong 实例。
|
static OptionalLong |
OptionalLong.of(long value)
返回当前指定的值
OptionalLong 。
|
Modifier and Type | Method and Description |
---|---|
OptionalLong |
LongStream.findAny()
返回一个
OptionalLong 描述一些流元素,或一个空的
OptionalLong 如果流是空的。
|
OptionalLong |
LongStream.findFirst()
返回一个
OptionalLong 描述此流的第一个元素,或者一个空的
OptionalLong 如果流是空的。
|
OptionalLong |
LongStream.max()
返回一个
OptionalLong 描述此流的最大元素,或一个空如果此流是空的。
|
OptionalLong |
LongStream.min()
返回一个
OptionalLong 描述该流的最小元素,或一个空如果此流是空的。
|
OptionalLong |
LongStream.reduce(LongBinaryOperator op)
|
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.