| Package | Description |
|---|---|
| java.util |
Contains the collections framework, legacy collection classes, event model, date and time facilities, internationalization, and miscellaneous utility classes (a string tokenizer, a random-number generator, and a bit array).
|
| java.util.concurrent.atomic |
A small toolkit of classes that support lock-free thread-safe programming on single variables.
|
| java.util.function |
Functional interfaces provide target types for lambda expressions and method references.
|
| java.util.stream |
Classes to support functional-style operations on streams of elements, such as map-reduce transformations on collections.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
Arrays.parallelPrefix(T[] array, BinaryOperator
Cumulates, in parallel, each element of the given array in place, using the supplied function.
|
static <T> void |
Arrays.parallelPrefix(T[] array, int fromIndex, int toIndex, BinaryOperator
Performs
Arrays for the given subrange of the array.
|
| Modifier and Type | Method and Description |
|---|---|
E |
AtomicReferenceArray.accumulateAndGet(int i, E x, BinaryOperator
Atomically updates the element at index
i with the results of applying the given function to the current and given values, returning the updated value.
|
V |
AtomicReferenceFieldUpdater.accumulateAndGet(T obj, V x, BinaryOperator
Atomically updates the field of the given object managed by this updater with the results of applying the given function to the current and given values, returning the updated value.
|
V |
AtomicReference.accumulateAndGet(V x, BinaryOperator
Atomically updates the current value with the results of applying the given function to the current and given values, returning the updated value.
|
E |
AtomicReferenceArray.getAndAccumulate(int i, E x, BinaryOperator
Atomically updates the element at index
i with the results of applying the given function to the current and given values, returning the previous value.
|
V |
AtomicReferenceFieldUpdater.getAndAccumulate(T obj, V x, BinaryOperator
Atomically updates the field of the given object managed by this updater with the results of applying the given function to the current and given values, returning the previous value.
|
V |
AtomicReference.getAndAccumulate(V x, BinaryOperator
Atomically updates the current value with the results of applying the given function to the current and given values, returning the previous value.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> BinaryOperator |
BinaryOperator.maxBy(Comparator
Returns a
BinaryOperator which returns the greater of two elements according to the specified
Comparator.
|
static <T> BinaryOperator |
BinaryOperator.minBy(Comparator
Returns a
BinaryOperator which returns the lesser of two elements according to the specified
Comparator.
|
| Modifier and Type | Method and Description |
|---|---|
BinaryOperator |
Collector.combiner()
A function that accepts two partial results and merges them.
|
| Modifier and Type | Method and Description |
|---|---|
static <T |
Collector.of(Supplier
Returns a new
Collector described by the given
supplier,
accumulator,
combiner, and
finisher functions.
|
static <T |
Collector.of(Supplier
Returns a new
Collector described by the given
supplier,
accumulator, and
combiner functions.
|
Optional |
Stream.reduce(BinaryOperator
Performs a
reduction on the elements of this stream, using an
associative accumulation function, and returns an
Optional describing the reduced value, if any.
|
T |
Stream.reduce(T identity, BinaryOperator
Performs a
reduction on the elements of this stream, using the provided identity value and an
associative accumulation function, and returns the reduced value.
|
<U> U |
Stream.reduce(U identity, BiFunction
Performs a
reduction on the elements of this stream, using the provided identity, accumulation and combining functions.
|
static <T> Collector |
Collectors.reducing(BinaryOperator
Returns a
Collector which performs a reduction of its input elements under a specified
BinaryOperator.
|
static <T> Collector |
Collectors.reducing(T identity, BinaryOperator
Returns a
Collector which performs a reduction of its input elements under a specified
BinaryOperator using the provided identity.
|
static <T |
Collectors.reducing(U identity, Function
Returns a
Collector which performs a reduction of its input elements under a specified mapping function and
BinaryOperator.
|
static <T |
Collectors.toConcurrentMap(Function
Returns a concurrent
Collector that accumulates elements into a
ConcurrentMap whose keys and values are the result of applying the provided mapping functions to the input elements.
|
static <T |
Collectors.toConcurrentMap(Function
Returns a concurrent
Collector that accumulates elements into a
ConcurrentMap whose keys and values are the result of applying the provided mapping functions to the input elements.
|
static <T |
Collectors.toMap(Function
Returns a
Collector that accumulates elements into a
Map whose keys and values are the result of applying the provided mapping functions to the input elements.
|
static <T |
Collectors.toMap(Function
Returns a
Collector that accumulates elements into a
Map whose keys and values are the result of applying the provided mapping functions to the input elements.
|