A Ceylon MutableMap
that wraps a JMap
.
If the given map
contains null elements, an optional
Item
type must be explicitly specified, for example:
CeylonMap<String,Object?>(javaStringObjectMap)
If a non-optional Item
type is specified, an
AssertionError
will occur whenever a null item is
encountered while iterating the map.
no subtypes hierarchy
Initializer |
CeylonMutableMap(JMap<Key,Item> map) |
Inherited Attributes |
Attributes inherited from: CeylonMap<Key,Item> |
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 | |
clear | Source Codeshared actual void clear() Remove every entry from this map, leaving an empty map with no entries. Refines MapMutator.clear |
clone | Source Codeshared actual 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. |
put | Source Codeshared actual Item? put(Key key, Item item) Set the item associated with the given For any instance c[key] = item |
remove | Source Codeshared actual Item? remove(Key key) Remove the entry associated with the given |
Inherited Methods |
Methods inherited from: CeylonMap<Key,Item> |
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> any() , by() , chain() , collect() , contains() , count() , defaultNullElements() , each() , every() , filter() , find() , findLast() , flatMap() , fold() , follow() , frequencies() , getFromFirst() , group() , indexes() , interpose() , iterator() , locate() , locateLast() , locations() , longerThan() , map() , max() , narrow() , partition() , product() , reduce() , repeat() , scan() , select() , sequence() , shorterThan() , skip() , skipWhile() , sort() , spread() , summarize() , tabulate() , take() , takeWhile() |
Methods inherited from: KeyedCorrespondenceMutator<Key,Item> |
Methods inherited from: Map<Key,Item> |
Methods inherited from: MapMutator<Key,Item> |
Methods inherited from: MutableMap<Key,Item> |