软件包 | 描述 |
---|---|
java.util |
包含集合框架、遗留的集合类、事件模型、日期和时间的设施、国际化和各种实用工具类(一个字符串标记,一个随机数发生器,和一位阵列)。
|
java.util.stream |
类,以支持元素流上的功能样式操作,如Map减少集合上的转换。
|
Modifier and Type | Method and Description |
---|---|
static <T> void |
Arrays.parallelSetAll(T[] array, IntFunction<? extends T> generator)
将指定的数组的所有元素,在并行中,使用提供的生成器函数来计算每个元素。
|
static <T> void |
Arrays.setAll(T[] array, IntFunction<? extends T> generator)
设置指定数组的所有元素,使用提供的生成器函数来计算每个元素。
|
Modifier and Type | Method and Description |
---|---|
IntStream |
IntStream.flatMap(IntFunction<? extends IntStream> mapper)
返回由将所提供的映射函数应用到每个元素的映射流的内容替换此流的每个元素的结果的结果流。
|
<U> Stream<U> |
IntStream.mapToObj(IntFunction<? extends U> mapper)
返回一个对象的值
Stream 组成的应用给出的函数的流元素的结果。
|
<A> A[] |
Stream.toArray(IntFunction<A[]> generator)
返回一个数组包含该流的元素,使用提供的
generator 函数分配的返回的数组,以及可能对分区执行或调整所需的任何额外的数组。
|
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.