Package | Description |
---|---|
com.annimon.stream |
Modifier and Type | Method and Description |
---|---|
static <T> BinaryOperator<T> |
Fn.ignoringMerger() |
static <T> BinaryOperator<T> |
Fn.replacingMerger() |
static <T> BinaryOperator<T> |
Fn.throwingMerger() |
Modifier and Type | Method and Description |
---|---|
Optional<java.util.Map.Entry<K,V>> |
EntryStream.reduce(BinaryOperator<java.util.Map.Entry<K,V>> accumulator) |
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. |
java.util.Map<K,V> |
EntryStream.toMap(BinaryOperator<V> mergeFunction) |
<M extends java.util.Map<K,V>> |
EntryStream.toMap(BinaryOperator<V> mergeFunction,
Supplier<M> mapFactory) |
<K,V> java.util.Map<K,V> |
Stream.toMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
BinaryOperator<V> mergeFunction) |
static <T,K,V> Collector<T,?,java.util.Map<K,V>> |
Collectors.toMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
BinaryOperator<V> mergeFunction) |
<K,V,M extends java.util.Map<K,V>> |
Stream.toMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
BinaryOperator<V> mergeFunction,
Supplier<M> mapFactory) |
static <T,K,V,M extends java.util.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. |