Package | Description |
---|---|
java8.util |
Provides some of the new
java.util classes and implementations
of static and default interface methods added in Java 8. |
java8.util.concurrent.atomic |
Some of the new classes that support lock-free thread-safe programming on single
variables that were added in Java 8.
|
java8.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 void |
J8Arrays.parallelPrefix(long[] array,
int fromIndex,
int toIndex,
LongBinaryOperator op)
Performs
J8Arrays.parallelPrefix(long[], LongBinaryOperator)
for the given subrange of the array. |
static void |
J8Arrays.parallelPrefix(long[] array,
LongBinaryOperator op)
Cumulates, in parallel, each element of the given array in place,
using the supplied function.
|
Constructor and Description |
---|
LongAccumulator(LongBinaryOperator accumulatorFunction,
long identity)
Creates a new instance using the given accumulator function
and identity element.
|
Modifier and Type | Method and Description |
---|---|
OptionalLong |
LongStream.reduce(LongBinaryOperator op)
Performs a reduction on the
elements of this stream, using an
associative accumulation
function, and returns an
OptionalLong describing the reduced value,
if any. |
long |
LongStream.reduce(long identity,
LongBinaryOperator op)
Performs a reduction on the
elements of this stream, using the provided identity value and an
associative
accumulation function, and returns the reduced value.
|