| Package | Description |
|---|---|
| com.annimon.stream | |
| com.annimon.stream.operator |
| 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. |
static <T> ComparatorCompat<T> |
ComparatorCompat.comparingInt(ToIntFunction<? super T> keyExtractor)
Returns a comparator that uses a function that extracts
an
int sort key to be compared. |
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. |
ComparatorCompat<T> |
ComparatorCompat.thenComparingInt(ToIntFunction<? super T> keyExtractor)
Adds the comparator, that uses a function for extract
an
int sort key, to the chain. |
| Constructor and Description |
|---|
ObjMapToInt(Iterator<? extends T> iterator,
ToIntFunction<? super T> mapper) |
Copyright © 2018. All rights reserved.