| Package | Description |
|---|---|
| com.annimon.stream | |
| com.annimon.stream.operator |
| Modifier and Type | Method and Description |
|---|---|
static <T> Collector<T,?,Double> |
Collectors.averagingDouble(ToDoubleFunction<? super T> mapper)
Returns a
Collector that calculates average of double-valued input elements. |
static <T> ComparatorCompat<T> |
ComparatorCompat.comparingDouble(ToDoubleFunction<? super T> keyExtractor)
Returns a comparator that uses a function that extracts
a
double sort key to be compared. |
DoubleStream |
Stream.mapToDouble(ToDoubleFunction<? super T> mapper)
Returns
DoubleStream with elements that obtained by applying the given function. |
OptionalDouble |
Optional.mapToDouble(ToDoubleFunction<? super T> mapper)
Invokes mapping function on inner value if present.
|
static <T> Collector<T,?,Double> |
Collectors.summingDouble(ToDoubleFunction<? super T> mapper)
Returns a
Collector that summing double-valued input elements. |
ComparatorCompat<T> |
ComparatorCompat.thenComparingDouble(ToDoubleFunction<? super T> keyExtractor)
Adds the comparator, that uses a function for extract
a
double sort key, to the chain. |
| Constructor and Description |
|---|
ObjMapToDouble(Iterator<? extends T> iterator,
ToDoubleFunction<? super T> mapper) |
Copyright © 2018. All rights reserved.