| Package | Description |
|---|---|
| com.annimon.stream |
| Modifier and Type | Method and Description |
|---|---|
OptionalDouble |
DoubleStream.average()
Returns the average of elements in this stream.
|
static OptionalDouble |
OptionalDouble.empty()
Returns an empty
OptionalDouble instance. |
OptionalDouble |
OptionalDouble.executeIfAbsent(Runnable action)
Invokes action function if value is absent.
|
OptionalDouble |
OptionalDouble.executeIfPresent(DoubleConsumer consumer)
Invokes consumer function with the value if present.
|
OptionalDouble |
OptionalDouble.filter(DoublePredicate predicate)
Performs filtering on inner value if present.
|
OptionalDouble |
DoubleStream.findFirst()
Returns the first element wrapped by
OptionalDouble class. |
OptionalDouble |
DoubleStream.findSingle()
Returns the single element wrapped by
OptionalDouble class. |
OptionalDouble |
OptionalDouble.map(DoubleUnaryOperator mapper)
Invokes the given mapping function on inner value if present.
|
OptionalDouble |
OptionalInt.mapToDouble(IntToDoubleFunction mapper)
Invokes mapping function on inner value if present.
|
OptionalDouble |
Optional.mapToDouble(ToDoubleFunction<? super T> mapper)
Invokes mapping function on inner value if present.
|
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 |
OptionalDouble.or(Supplier<OptionalDouble> supplier)
Returns current
OptionalDouble if value is present, otherwise
returns an OptionalDouble produced by supplier function. |
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. |
| Modifier and Type | Method and Description |
|---|---|
OptionalDouble |
OptionalDouble.or(Supplier<OptionalDouble> supplier)
Returns current
OptionalDouble if value is present, otherwise
returns an OptionalDouble produced by supplier function. |
Copyright © 2017. All rights reserved.