public abstract class ImmutableHashTrieMap<K,V> extends Object implements ImmutableMap<K,V>, Iterable<Tuple2<K,V>>
| Constructor and Description |
|---|
ImmutableHashTrieMap() |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> ImmutableHashTrieMap<K,V> |
empty() |
(package private) abstract V |
get(int shift,
K key) |
V |
get(K key)
Retrieve a stored value from the map based on the key for the
associated entry.
|
(package private) abstract boolean |
isArrayNode() |
(package private) abstract ImmutableHashTrieMap<K,V> |
put(int shift,
K key,
V value) |
ImmutableHashTrieMap<K,V> |
put(K key,
V value)
Add a new entry to the map.
|
(package private) abstract ImmutableHashTrieMap<K,V> |
remove(int shift,
K key) |
ImmutableHashTrieMap<K,V> |
remove(K key)
Remove an entry from the map.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waititeratorforEach, iterator, spliteratorpublic static <K,V> ImmutableHashTrieMap<K,V> empty()
public ImmutableHashTrieMap<K,V> put(K key, V value)
ImmutableMapput in interface ImmutableMap<K,V>key - the key to use to retrieve this itemvalue - the value stored for this itempublic ImmutableHashTrieMap<K,V> remove(K key)
ImmutableMapremove in interface ImmutableMap<K,V>key - the key for the entry to removepublic V get(K key)
ImmutableMapget in interface ImmutableMap<K,V>key - the key for the entry to retrieveabstract ImmutableHashTrieMap<K,V> put(int shift, K key, V value)
abstract ImmutableHashTrieMap<K,V> remove(int shift, K key)
abstract boolean isArrayNode()