软件包 | 描述 |
---|---|
java.util |
包含集合框架、遗留的集合类、事件模型、日期和时间的设施、国际化和各种实用工具类(一个字符串标记,一个随机数发生器,和一位阵列)。
|
java.util.concurrent |
在并发编程中常用的实用类。
|
java.util.concurrent.atomic |
一个支持单变量无锁线程安全编程的类的小工具包。
|
java.util.stream |
类,以支持元素流上的功能样式操作,如Map减少集合上的转换。
|
Modifier and Type | Method and Description |
---|---|
static void |
Arrays.parallelPrefix(long[] array, int fromIndex, int toIndex, LongBinaryOperator op)
|
static void |
Arrays.parallelPrefix(long[] array, LongBinaryOperator op)
堆,并联,每个元素的数组的地方,使用提供的功能。
|
Modifier and Type | Method and Description |
---|---|
long |
ConcurrentHashMap.reduceEntriesToLong(long parallelismThreshold, ToLongFunction<Map.Entry<K,V>> transformer, long basis, LongBinaryOperator reducer)
返回使用给定的减速器组合值,并给定的基础作为标识值的所有条目的给定转换的结果。
|
long |
ConcurrentHashMap.reduceKeysToLong(long parallelismThreshold, ToLongFunction<? super K> transformer, long basis, LongBinaryOperator reducer)
返回累积给定的所有键的给定转换的结果,使用给定的减速器组合值,和给定的基础作为一个标识值。
|
long |
ConcurrentHashMap.reduceToLong(long parallelismThreshold, ToLongBiFunction<? super K,? super V> transformer, long basis, LongBinaryOperator reducer)
返回累积给定的所有(键,值)对的结果,使用给定的减速器组合值,和给定的基础作为一个标识值。
|
long |
ConcurrentHashMap.reduceValuesToLong(long parallelismThreshold, ToLongFunction<? super V> transformer, long basis, LongBinaryOperator reducer)
返回累积给定的所有值的给定值,使用给定的减速器组合值,和给定的基础作为一个身份值的结果。
|
Modifier and Type | Method and Description |
---|---|
long |
AtomicLongArray.accumulateAndGet(int i, long x, LongBinaryOperator accumulatorFunction)
自动更新与应用给出的函数的电流与给定值的结果指标
i 元素,返回更新后的值。
|
long |
AtomicLong.accumulateAndGet(long x, LongBinaryOperator accumulatorFunction)
自动更新当前值与给定的功能应用到当前和给定值的结果,返回更新后的值。
|
long |
AtomicLongFieldUpdater.accumulateAndGet(T obj, long x, LongBinaryOperator accumulatorFunction)
自动更新给定对象的更新管理与应用给出的函数的电流与给定值结果领域,返回更新后的值。
|
long |
AtomicLongArray.getAndAccumulate(int i, long x, LongBinaryOperator accumulatorFunction)
自动更新与应用给出的函数的电流与给定值的结果指标
i 元素,返回前一个值。
|
long |
AtomicLong.getAndAccumulate(long x, LongBinaryOperator accumulatorFunction)
自动更新当前值与给定的功能应用到当前和给定值的结果,返回前一个值。
|
long |
AtomicLongFieldUpdater.getAndAccumulate(T obj, long x, LongBinaryOperator accumulatorFunction)
自动更新给定对象的更新管理与应用给出的函数的电流与给定值结果领域,返回前一个值。
|
Constructor and Description |
---|
LongAccumulator(LongBinaryOperator accumulatorFunction, long identity)
使用给定的“生成”函数和标识元素创建一个新实例。
|
Modifier and Type | Method and Description |
---|---|
OptionalLong |
LongStream.reduce(LongBinaryOperator op)
|
long |
LongStream.reduce(long identity, LongBinaryOperator 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.