软件包 | 描述 |
---|---|
java.util |
包含集合框架、遗留的集合类、事件模型、日期和时间的设施、国际化和各种实用工具类(一个字符串标记,一个随机数发生器,和一位阵列)。
|
java.util.concurrent.atomic |
一个支持单变量无锁线程安全编程的类的小工具包。
|
java.util.function |
功能接口提供目标类型的lambda表达式和方法参考。
|
java.util.stream |
类,以支持元素流上的功能样式操作,如Map减少集合上的转换。
|
Modifier and Type | Method and Description |
---|---|
static <T> void |
Arrays.parallelPrefix(T[] array, BinaryOperator<T> op)
堆,并联,每个元素的数组的地方,使用提供的功能。
|
static <T> void |
Arrays.parallelPrefix(T[] array, int fromIndex, int toIndex, BinaryOperator<T> op)
|
Modifier and Type | Method and Description |
---|---|
E |
AtomicReferenceArray.accumulateAndGet(int i, E x, BinaryOperator<E> accumulatorFunction)
自动更新与应用给出的函数的电流与给定值的结果指标
i 元素,返回更新后的值。
|
V |
AtomicReferenceFieldUpdater.accumulateAndGet(T obj, V x, BinaryOperator<V> accumulatorFunction)
自动更新给定对象的更新管理与应用给出的函数的电流与给定值结果领域,返回更新后的值。
|
V |
AtomicReference.accumulateAndGet(V x, BinaryOperator<V> accumulatorFunction)
自动更新当前值与给定的功能应用到当前和给定值的结果,返回更新后的值。
|
E |
AtomicReferenceArray.getAndAccumulate(int i, E x, BinaryOperator<E> accumulatorFunction)
自动更新与应用给出的函数的电流与给定值的结果指标
i 元素,返回前一个值。
|
V |
AtomicReferenceFieldUpdater.getAndAccumulate(T obj, V x, BinaryOperator<V> accumulatorFunction)
自动更新给定对象的更新管理与应用给出的函数的电流与给定值结果领域,返回前一个值。
|
V |
AtomicReference.getAndAccumulate(V x, BinaryOperator<V> accumulatorFunction)
自动更新当前值与给定的功能应用到当前和给定值的结果,返回前一个值。
|
Modifier and Type | Method and Description |
---|---|
static <T> BinaryOperator<T> |
BinaryOperator.maxBy(Comparator<? super T> comparator)
返回一个
BinaryOperator 返回大两元素按指定的
Comparator 。
|
static <T> BinaryOperator<T> |
BinaryOperator.minBy(Comparator<? super T> comparator)
返回一个
BinaryOperator 返回小两元素按指定的
Comparator 。
|
Modifier and Type | Method and Description |
---|---|
BinaryOperator<A> |
Collector.combiner()
一个函数,它接受两个部分结果并将其合并。
|
Modifier and Type | Method and Description |
---|---|
static <T,A,R> Collector<T,A,R> |
Collector.of(Supplier<A> supplier, BiConsumer<A,T> accumulator, BinaryOperator<A> combiner, Function<A,R> finisher, Collector.Characteristics... characteristics)
返回一个新的
Collector 由给定的
supplier ,
accumulator ,
combiner 描述,和
finisher 功能。
|
static <T,R> Collector<T,R,R> |
Collector.of(Supplier<R> supplier, BiConsumer<R,T> accumulator, BinaryOperator<R> combiner, Collector.Characteristics... characteristics)
返回一个新的
Collector 由给定的
supplier ,
accumulator 描述,和
combiner 功能。
|
Optional<T> |
Stream.reduce(BinaryOperator<T> accumulator)
|
T |
Stream.reduce(T identity, BinaryOperator<T> accumulator)
执行
reduction对该流的元素,使用提供的价值认同和
associative累积函数,返回值减少。
|
<U> U |
Stream.reduce(U identity, BiFunction<U,? super T,U> accumulator, BinaryOperator<U> combiner)
对这一
reduction流元素,使用提供的身份,积累和组合功能。
|
static <T> Collector<T,?,Optional<T>> |
Collectors.reducing(BinaryOperator<T> op)
返回一个
Collector 执行指定的
BinaryOperator 下减少其投入要素。
|
static <T> Collector<T,?,T> |
Collectors.reducing(T identity, BinaryOperator<T> op)
返回一个
Collector 执行指定的
BinaryOperator 下使用提供的身份的输入元素的减少。
|
static <T,U> Collector<T,?,U> |
Collectors.reducing(U identity, Function<? super T,? extends U> mapper, BinaryOperator<U> op)
返回一个
Collector 执行指定的映射功能和
BinaryOperator 下减少其投入要素。
|
static <T,K,U> Collector<T,?,ConcurrentMap<K,U>> |
Collectors.toConcurrentMap(Function<? super T,? extends K> keyMapper, Function<? super T,? extends U> valueMapper, BinaryOperator<U> mergeFunction)
返回一个并发
Collector 积累成
ConcurrentMap 元素的键和值是应用提供的函数映射到输入元素的结果。
|
static <T,K,U,M extends ConcurrentMap<K,U>> |
Collectors.toConcurrentMap(Function<? super T,? extends K> keyMapper, Function<? super T,? extends U> valueMapper, BinaryOperator<U> mergeFunction, Supplier<M> mapSupplier)
返回一个并发
Collector 积累成
ConcurrentMap 元素的键和值是应用提供的函数映射到输入元素的结果。
|
static <T,K,U> Collector<T,?,Map<K,U>> |
Collectors.toMap(Function<? super T,? extends K> keyMapper, Function<? super T,? extends U> valueMapper, BinaryOperator<U> mergeFunction)
返回一个
Collector 积累成一个
Map 元素的键和值是应用提供的函数映射到输入元素的结果。
|
static <T,K,U,M extends Map<K,U>> |
Collectors.toMap(Function<? super T,? extends K> keyMapper, Function<? super T,? extends U> valueMapper, BinaryOperator<U> mergeFunction, Supplier<M> mapSupplier)
返回一个
Collector 积累成一个
Map 元素的键和值是应用提供的函数映射到输入元素的结果。
|
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.