| Package | Description |
|---|---|
| com.codepoetics.protonpack.maps |
| Modifier and Type | Method and Description |
|---|---|
MapStream<K,V> |
MapStream.distinct() |
MapStream<K,V> |
MapStream.filter(java.util.function.Predicate<? super Map.Entry<K,V>> predicate) |
default MapStream<V,K> |
MapStream.inverseMapping()
Return a MapStream from which the keys and values are reversed.
|
MapStream<K,V> |
MapStream.limit(long n) |
default <K1,V1> MapStream<K1,V1> |
MapStream.mapEntries(java.util.function.Function<? super K,? extends K1> keyMapper,
java.util.function.Function<? super V,? extends V1> valueMapper)
Applies the mapping for each key and value in the map.
|
default <R> MapStream<R,V> |
MapStream.mapEntriesToKeys(java.util.function.BiFunction<? super K,? super V,? extends R> mapper)
Applies the mapping for each key and value in the map, to produce a new key for each
entry.
|
default <R> MapStream<K,R> |
MapStream.mapEntriesToValues(java.util.function.BiFunction<? super K,? super V,? extends R> mapper)
Applies the mapping for each key and value in the map, to produce a new value for each
entry.
|
default <K1> MapStream<K1,V> |
MapStream.mapKeys(java.util.function.Function<? super K,? extends K1> mapper)
Applies the mapping for each key in the map.
|
default <V1> MapStream<K,V1> |
MapStream.mapValues(java.util.function.Function<? super V,? extends V1> mapper)
Applies the mapping for each value in the map.
|
default MapStream<K,List<V>> |
MapStream.mergeKeys()
Merge keys of the Stream into a new Stream
|
default MapStream<K,V> |
MapStream.mergeKeys(java.util.function.BinaryOperator<V> mergeFunction)
Merge keys of the Stream into a new Stream with the merge function provided
|
static <K,V> MapStream<K,V> |
MapStream.of(K key,
V value)
Construct a
MapStream<K, V> from a single key-value pair |
static <K,V> MapStream<K,V> |
MapStream.of(K key,
V value,
K key1,
V value1)
Construct a
MapStream<K, V> from a multiple key-value pairs |
static <K,V> MapStream<K,V> |
MapStream.of(K key,
V value,
K key1,
V value1,
K key2,
V value2)
Construct a
MapStream<K, V> from a multiple key-value pairs |
static <K,V> MapStream<K,V> |
MapStream.of(K key,
V value,
K key1,
V value1,
K key2,
V value2,
K key3,
V value3)
Construct a
MapStream<K, V> from a multiple key-value pairs |
static <K,V> MapStream<K,V> |
MapStream.of(K key,
V value,
K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4)
Construct a
MapStream<K, V> from a multiple key-value pairs |
static <K,V> MapStream<K,V> |
MapStream.of(Map<K,V> map)
Construct a
MapStream<K, V> from the map |
static <K,V> MapStream<K,V> |
MapStream.ofMaps(Map<K,V>... maps)
Construct a
MapStream<K, V> from the map |
MapStream<K,V> |
MapStream.onClose(Runnable closeHandler) |
MapStream<K,V> |
MapStream.parallel() |
MapStream<K,V> |
MapStream.peek(java.util.function.Consumer<? super Map.Entry<K,V>> action) |
MapStream<K,V> |
MapStream.sequential() |
MapStream<K,V> |
MapStream.skip(long n) |
MapStream<K,V> |
MapStream.sorted() |
MapStream<K,V> |
MapStream.sorted(Comparator<? super Map.Entry<K,V>> comparator) |
MapStream<K,V> |
MapStream.unordered() |
Copyright © 2020. All rights reserved.