static <V,K> Stream<V> |
CustomCollectors.distinctByKey(Stream<V> stream,
Function<? super V,? extends K> keyMapper,
CustomCollectors.DuplicateHandler<K,V> duplicateHander) |
Produce a new stream with duplicates removed based on the provided
keyMapper .
|
static <T,K,V> Collector<T,?,Map<K,V>> |
CustomCollectors.toMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
CustomCollectors.DuplicateHandler<K,V> duplicateHander) |
|
static <T,K,V,M extends Map<K,V>> Collector<T,?,M> |
CustomCollectors.toMap(Function<? super T,? extends K> keyMapper,
Function<? super T,? extends V> valueMapper,
CustomCollectors.DuplicateHandler<K,V> duplicateHander,
Supplier<M> supplier) |
|