public abstract class ImmutableHashTrieMap<K,V> extends java.lang.Object implements ImmutableMap<K,V>, java.lang.Iterable<Tuple2<K,V>>
Constructor and Description |
---|
ImmutableHashTrieMap() |
Modifier and Type | Method and Description |
---|---|
static <K,V> ImmutableHashTrieMap<K,V> |
empty() |
V |
get(K key)
Retrieve a stored value from the map based on the key for the
associated entry.
|
ImmutableHashTrieMap<K,V> |
put(K key,
V value)
Add a new entry to the map.
|
ImmutableHashTrieMap<K,V> |
remove(K key)
Remove an entry from the map.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
iterator
public static <K,V> ImmutableHashTrieMap<K,V> empty()
public ImmutableHashTrieMap<K,V> put(K key, V value)
ImmutableMap
put
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)
ImmutableMap
remove
in interface ImmutableMap<K,V>
key
- the key for the entry to removepublic V get(K key)
ImmutableMap
get
in interface ImmutableMap<K,V>
key
- the key for the entry to retrieveCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.