| Package | Description |
|---|---|
| com.annimon.stream |
| Modifier and Type | Method and Description |
|---|---|
static <T> Collector<T,?,Double> |
Collectors.averagingInt(ToIntFunction<? super T> mapper)
Returns a
Collector that calculates average of integer-valued input elements. |
IntStream |
Stream.mapToInt(ToIntFunction<? super T> mapper)
Returns
IntStream with elements that obtained by applying the given function. |
OptionalInt |
Optional.mapToInt(ToIntFunction<? super T> mapper)
Invokes the given mapping function on inner value if present.
|
static <T> Collector<T,?,Integer> |
Collectors.summingInt(ToIntFunction<? super T> mapper)
Returns a
Collector that summing integer-valued input elements. |
Copyright © 2017. All rights reserved.