| 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 java.util.Map.Entry<K,V>> predicate) |
default MapStream<V,K> |
MapStream.inverseMapping()
Return a MapStream from which the key 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 keys and values in the map.
|
default <K1> MapStream<K1,V> |
MapStream.mapKeys(java.util.function.Function<? super K,? extends K1> mapper)
Applies the mapping for each keys in the map.
|
default <V1> MapStream<K,V1> |
MapStream.mapValues(java.util.function.Function<? super V,? extends V1> mapper)
Applies the mapping for each values in the map.
|
default MapStream<K,java.util.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(java.util.Map<K,V> map)
Construct a
MapStream<K, V> from the map |
static <K,V> MapStream<K,V> |
MapStream.ofMaps(java.util.Map<K,V>... maps)
Construct a
MapStream<K, V> from the map |
MapStream<K,V> |
MapStream.onClose(java.lang.Runnable closeHandler) |
MapStream<K,V> |
MapStream.parallel() |
MapStream<K,V> |
MapStream.peek(java.util.function.Consumer<? super java.util.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(java.util.Comparator<? super java.util.Map.Entry<K,V>> comparator) |
MapStream<K,V> |
MapStream.unordered() |
Copyright © 2015. All Rights Reserved.