软件包 | 描述 |
---|---|
java.util.stream |
类,以支持元素流上的功能样式操作,如Map减少集合上的转换。
|
Modifier and Type | Method and Description |
---|---|
LongStream |
LongStream.flatMap(LongFunction<? extends LongStream> mapper)
返回由将所提供的映射函数应用到每个元素的映射流的内容替换此流的每个元素的结果的结果流。
|
<U> Stream<U> |
LongStream.mapToObj(LongFunction<? extends U> mapper)
返回一个对象的值
Stream 组成的应用给出的函数的流元素的结果。
|
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.