| Package | Description |
|---|---|
| com.annimon.stream | |
| com.annimon.stream.operator |
| Modifier and Type | Method and Description |
|---|---|
OptionalDouble |
DoubleStream.reduce(DoubleBinaryOperator accumulator)
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 accumulator)
Performs a reduction on the elements of this stream, using the provided
identity value and an associative accumulation function, and returns the
reduced value.
|
DoubleStream |
DoubleStream.scan(DoubleBinaryOperator accumulator)
Returns a
DoubleStream produced by iterative application of a accumulation function
to reduction value and next element of the current stream. |
DoubleStream |
DoubleStream.scan(double identity,
DoubleBinaryOperator accumulator)
Returns a
DoubleStream produced by iterative application of a accumulation function
to an initial element identity and next element of the current stream. |
| Constructor and Description |
|---|
DoubleScan(PrimitiveIterator.OfDouble iterator,
DoubleBinaryOperator accumulator) |
DoubleScanIdentity(PrimitiveIterator.OfDouble iterator,
double identity,
DoubleBinaryOperator accumulator) |
Copyright © 2017. All rights reserved.