| Package | Description |
|---|---|
| com.annimon.stream | |
| com.annimon.stream.operator |
| Modifier and Type | Method and Description |
|---|---|
IntStream |
IntStream.mapIndexed(IntBinaryOperator mapper)
Returns an
IntStream with elements that obtained by applying the given IntBinaryOperator. |
IntStream |
IntStream.mapIndexed(int from,
int step,
IntBinaryOperator mapper)
Returns an
IntStream with elements that obtained by applying the given IntBinaryOperator. |
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.
|
IntStream |
IntStream.scan(IntBinaryOperator accumulator)
Returns a
IntStream produced by iterative application of a accumulation function
to reduction value and next element of the current stream. |
IntStream |
IntStream.scan(int identity,
IntBinaryOperator accumulator)
Returns a
IntStream produced by iterative application of a accumulation function
to an initial element identity and next element of the current stream. |
| Constructor and Description |
|---|
IntMapIndexed(PrimitiveIndexedIterator.OfInt iterator,
IntBinaryOperator mapper) |
IntScan(PrimitiveIterator.OfInt iterator,
IntBinaryOperator accumulator) |
IntScanIdentity(PrimitiveIterator.OfInt iterator,
int identity,
IntBinaryOperator accumulator) |
Copyright © 2018. All rights reserved.