| Package | Description |
|---|---|
| com.annimon.stream | |
| com.annimon.stream.function |
| Modifier and Type | Method and Description |
|---|---|
static <T,R> Collector<T,?,R> |
Collectors.reducing(R identity,
Function<? super T,? extends R> mapper,
BinaryOperator<R> op)
Returns a
Collector that reduces input elements. |
static <T> Collector<T,?,T> |
Collectors.reducing(T identity,
BinaryOperator<T> op)
Returns a
Collector that reduces input elements. |
static <T,K,V> Collector<T,?,Map<K,V>> |
Collectors.toMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
BinaryOperator<V> mergeFunction)
Returns a
Collector that fills new Map with input elements. |
static <T,K,V,M extends Map<K,V>> |
Collectors.toMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
BinaryOperator<V> mergeFunction,
Supplier<M> mapFactory)
Returns a
Collector that fills new Map with input elements. |
static <T,K,V> Collector<T,?,Map<K,V>> |
Collectors.toUnmodifiableMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
BinaryOperator<V> mergeFunction)
Returns a
Collector that fills new unmodifiable Map with input elements. |
| Modifier and Type | Method and Description |
|---|---|
static <T> BinaryOperator<T> |
BinaryOperator.Util.maxBy(Comparator<? super T> comparator)
Returns a
BinaryOperator which returns greater of two elements
according to the specified Comparator. |
static <T> BinaryOperator<T> |
BinaryOperator.Util.minBy(Comparator<? super T> comparator)
Returns a
BinaryOperator which returns lesser of two elements
according to the specified Comparator. |
Copyright © 2018. All rights reserved.