Package | Description |
---|---|
com.annimon.stream |
Modifier and Type | Method and Description |
---|---|
OptionalDouble |
LongStream.average()
Returns the average of elements in this stream.
|
OptionalDouble |
IntStream.average()
Returns the average of elements in this stream.
|
OptionalDouble |
DoubleStream.average()
Returns the average of elements in this stream.
|
static OptionalDouble |
OptionalDouble.empty()
Returns an empty
OptionalDouble instance. |
OptionalDouble |
DoubleStream.findFirst()
Returns the first element wrapped by
OptionalDouble class. |
OptionalDouble |
DoubleStream.findLast()
Returns the last element wrapped by
OptionalDouble class. |
OptionalDouble |
DoubleStream.max()
Returns an
OptionalDouble describing the maximum element of this
stream, or an empty optional if this stream is empty. |
OptionalDouble |
DoubleStream.min()
Returns an
OptionalDouble describing the minimum element of this
stream, or an empty optional if this stream is empty. |
static OptionalDouble |
OptionalDouble.of(double value)
Returns an
OptionalDouble with the specified value present. |
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. |