Inherited Attributes
Attributes inherited from: Object
Attributes inherited from: Collection<Element>
Attributes inherited from: Correspondence<Key,Item>
Attributes inherited from: Iterable<Element,Absent>
Attributes inherited from: Map<Key,Item>
Methods
cloneSource Codeshared formal MutableMap<Key,Item> clone()

A shallow copy of this collection, that is, a collection with identical elements which does not change if this collection changes. If this collection is immutable, it is acceptable to return a reference to this collection. If this collection is mutable, a newly instantiated collection must be returned.

Refines Map.clone ultimately refines Collection.clone
putSource Codeshared formal Item? put(Key key, Item item)

Add an entry to this map, overwriting any existing entry for the given key, and returning the previous item associated with the given key, if any, or null if no existing entry was overwritten.

Note that, while map.put(key, item) is often written as map[key] = item, the two expressions are not equivalent, since put() returns the item previously associated with key, whereas an assignment expression always evaluates to the newly assigned value.

removeSource Codeshared formal Item? remove(Key key)

Remove the entry associated with the given key, if any, from this map, returning the item no longer associated with the given key, if any, or null if there was no entry associated with the given key.

Inherited Methods
Methods inherited from: Object
Methods inherited from: Category<Element>
Methods inherited from: Collection<Element>
Methods inherited from: Correspondence<Key,Item>
Methods inherited from: Iterable<Element,Absent>
Methods inherited from: KeyedCorrespondenceMutator<Key,Item>
Methods inherited from: Map<Key,Item>
Methods inherited from: MapMutator<Key,Item>