K - the key typeV - the value typepublic interface ImmutableMap<K,V> extends Map<K,V>
| Modifier and Type | Method and Description |
|---|---|
static <K,V> ImmutableMap<K,V> |
empty() |
ImmutableMap<K,V> |
removed(K key) |
static <K,V> ImmutableMap<K,V> |
singleton(K key,
V value) |
ImmutableMap<K,V> |
updated(K key,
V value) |
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, valuesstatic <K,V> ImmutableMap<K,V> empty()
K - the key typeV - the value typestatic <K,V> ImmutableMap<K,V> singleton(K key, V value)
K - the key typeV - the value typekey - the keyvalue - the valueImmutableMap<K,V> updated(K key, V value)
key - the keyvalue - the valueImmutableMap<K,V> removed(K key)
key - the key