Package | Description |
---|---|
java8.util |
Provides some of the new
java.util classes and implementations of
static and default interface methods added in Java 8 and, in addition, the
JEP 269: Convenience Factory
Methods for Collections that were introduced in Java 9. |
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(int[] array,
IntBinaryOperator op)
Cumulates, in parallel, each element of the given array in place,
using the supplied function.
|
static void |
J8Arrays.parallelPrefix(int[] array,
int fromIndex,
int toIndex,
IntBinaryOperator op)
Performs
J8Arrays.parallelPrefix(int[], IntBinaryOperator)
for the given subrange of the array. |
Modifier and Type | Method and Description |
---|---|
OptionalInt |
IntStream.reduce(IntBinaryOperator op)
Performs a reduction on the
elements of this stream, using an
associative accumulation
function, and returns an
OptionalInt describing the reduced value,
if any. |
int |
IntStream.reduce(int identity,
IntBinaryOperator 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.
|
Copyright © 2017. All rights reserved.