软件包 | 描述 |
---|---|
java.util |
包含集合框架、遗留的集合类、事件模型、日期和时间的设施、国际化和各种实用工具类(一个字符串标记,一个随机数发生器,和一位阵列)。
|
java.util.concurrent |
在并发编程中常用的实用类。
|
java.util.concurrent.atomic |
一个支持单变量无锁线程安全编程的类的小工具包。
|
java.util.stream |
类,以支持元素流上的功能样式操作,如Map减少集合上的转换。
|
Modifier and Type | Method and Description |
---|---|
static void |
Arrays.parallelPrefix(double[] array, DoubleBinaryOperator op)
堆,并联,每个元素的数组的地方,使用提供的功能。
|
static void |
Arrays.parallelPrefix(double[] array, int fromIndex, int toIndex, DoubleBinaryOperator op)
|
Modifier and Type | Method and Description |
---|---|
double |
ConcurrentHashMap.reduceEntriesToDouble(long parallelismThreshold, ToDoubleFunction<Map.Entry<K,V>> transformer, double basis, DoubleBinaryOperator reducer)
返回使用给定的减速器组合值,并给定的基础作为标识值的所有条目的给定转换的结果。
|
double |
ConcurrentHashMap.reduceKeysToDouble(long parallelismThreshold, ToDoubleFunction<? super K> transformer, double basis, DoubleBinaryOperator reducer)
返回累积给定的所有键的给定转换的结果,使用给定的减速器组合值,和给定的基础作为一个标识值。
|
double |
ConcurrentHashMap.reduceToDouble(long parallelismThreshold, ToDoubleBiFunction<? super K,? super V> transformer, double basis, DoubleBinaryOperator reducer)
返回累积给定的所有(键,值)对的结果,使用给定的减速器组合值,和给定的基础作为一个标识值。
|
double |
ConcurrentHashMap.reduceValuesToDouble(long parallelismThreshold, ToDoubleFunction<? super V> transformer, double basis, DoubleBinaryOperator reducer)
返回累积给定的所有值的给定值,使用给定的减速器组合值,和给定的基础作为一个身份值的结果。
|
Constructor and Description |
---|
DoubleAccumulator(DoubleBinaryOperator accumulatorFunction, double identity)
使用给定的“生成”函数和标识元素创建一个新实例。
|
Modifier and Type | Method and Description |
---|---|
OptionalDouble |
DoubleStream.reduce(DoubleBinaryOperator op)
|
double |
DoubleStream.reduce(double identity, DoubleBinaryOperator op)
对这一
reduction流元素,使用提供的价值认同和
associative累积函数,返回值减少。
|
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.