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(double[] array,
DoubleBinaryOperator op)
Cumulates, in parallel, each element of the given array in place,
using the supplied function.
|
static void |
J8Arrays.parallelPrefix(double[] array,
int fromIndex,
int toIndex,
DoubleBinaryOperator op)
Performs
J8Arrays.parallelPrefix(double[], DoubleBinaryOperator)
for the given subrange of the array. |
Constructor and Description |
---|
DoubleAccumulator(DoubleBinaryOperator accumulatorFunction,
double identity)
Creates a new instance using the given accumulator function
and identity element.
|
Modifier and Type | Method and Description |
---|---|
OptionalDouble |
DoubleStream.reduce(DoubleBinaryOperator op)
Performs a reduction on the
elements of this stream, using an
associative accumulation
function, and returns an
OptionalDouble describing the reduced
value, if any. |
double |
DoubleStream.reduce(double identity,
DoubleBinaryOperator 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.
|