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