public interface ImmutableMap<K,V>
Modifier and Type | Method and Description |
---|---|
V |
get(K key)
Retrieve a stored value from the map based on the key for the
associated entry.
|
java.util.Iterator<Tuple2<K,V>> |
iterator()
Iterate over the entries in the map
|
ImmutableMap<K,V> |
put(K key,
V value)
Add a new entry to the map.
|
ImmutableMap<K,V> |
remove(K key)
Remove an entry from the map.
|
ImmutableMap<K,V> put(K key, V value)
key
- the key to use to retrieve this itemvalue
- the value stored for this itemImmutableMap<K,V> remove(K key)
key
- the key for the entry to removeV get(K key)
key
- the key for the entry to retrieveCopyright (c) 2004-2018 Saxonica Limited. All rights reserved.