| Package | Description |
|---|---|
| com.annimon.stream | |
| com.annimon.stream.operator |
| Modifier and Type | Method and Description |
|---|---|
OptionalLong |
LongStream.reduce(LongBinaryOperator accumulator)
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 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.
|
LongStream |
LongStream.scan(LongBinaryOperator accumulator)
Returns a
LongStream produced by iterative application of a accumulation function
to reduction value and next element of the current stream. |
LongStream |
LongStream.scan(long identity,
LongBinaryOperator accumulator)
Returns a
LongStream produced by iterative application of a accumulation function
to an initial element identity and next element of the current stream. |
| Constructor and Description |
|---|
LongScan(PrimitiveIterator.OfLong iterator,
LongBinaryOperator accumulator) |
LongScanIdentity(PrimitiveIterator.OfLong iterator,
long identity,
LongBinaryOperator accumulator) |
Copyright © 2018. All rights reserved.