public interface ExMap<K,V> extends Map<K,V>
| 限定符和类型 | 方法和说明 |
|---|---|
default ExStream<Map.Entry<K,V>> |
entryStream()
EntrySet result as stream
|
default V |
getNonNull(K key,
V defaultValue)
Get value with key from this map, if not exists, or value is null, return defaultValue
|
default Map<K,V> |
immutable()
Create immutable view of this Set.
|
default ExStream<K> |
keyStream()
Key set result as stream
|
static <K,V> ExMap<K,V> |
of()
Create mutable empty map
|
static <K,V> ExHashMap<K,V> |
of(Collection<Pair<K,V>> pairs)
Create mutable map
|
static <K,V> ExMap<K,V> |
of(K key,
V value)
create mutable map
|
static <K,V> ExMap<K,V> |
of(K key1,
V value1,
K key2,
V value2)
create mutable map
|
static <K,V> ExMap<K,V> |
of(K key1,
V value1,
K key2,
V value2,
K key3,
V value3)
create mutable map
|
static <K,V> ExMap<K,V> |
of(K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4)
create mutable map
|
static <K,V> ExMap<K,V> |
of(K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4,
K key5,
V value5)
create mutable map
|
static <K,V> ExMap<K,V> |
of(K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4,
K key5,
V value5,
K key6,
V value6)
create mutable map
|
static <K,V> ExMap<K,V> |
of(K key1,
V value1,
K key2,
V value2,
K key3,
V value3,
K key4,
V value4,
K key5,
V value5,
K key6,
V value6,
K key7,
V value7)
create mutable map
|
static <K,V> ExMap<K,V> |
of(Pair<K,V>... pairs)
Create mutable map
|
default ExStream<V> |
valueStream()
Value collection result as stream
|
static <K,V> ExMap<K,V> |
wrap(Map<K,V> map)
If map is not EnhancedMap, wrap to EnhancedMap
|
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesdefault V getNonNull(K key, V defaultValue)
static <K,V> ExMap<K,V> of()
@SafeVarargs static <K,V> ExMap<K,V> of(Pair<K,V>... pairs)
static <K,V> ExHashMap<K,V> of(Collection<Pair<K,V>> pairs)
static <K,V> ExMap<K,V> of(K key, V value)
static <K,V> ExMap<K,V> of(K key1, V value1, K key2, V value2)
static <K,V> ExMap<K,V> of(K key1, V value1, K key2, V value2, K key3, V value3)
static <K,V> ExMap<K,V> of(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4)
static <K,V> ExMap<K,V> of(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5)
static <K,V> ExMap<K,V> of(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5, K key6, V value6)
static <K,V> ExMap<K,V> of(K key1, V value1, K key2, V value2, K key3, V value3, K key4, V value4, K key5, V value5, K key6, V value6, K key7, V value7)
Copyright © 2015. All rights reserved.