public interface ImmutableMap<K,V>
Modifier and Type | Method and Description |
---|---|
Option<V> |
get(K key)
Retrieve a stored value from the map based on the key for the
associated entry.
|
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 removeOption<V> get(K key)
key
- the key for the entry to retrieveCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.