- Implemented types
-
- Available extensions
Methods
-
asMap()
→ Map<K, V>
-
Creates a Map instance that wraps the original KtMap. It acts as a view.
inherited
-
clear()
→ void
-
Removes all elements from this map.
inherited
-
containsKey(K key)
→ bool
-
Returns
true
if the map contains the specified key
.
inherited
-
containsValue(V value)
→ bool
-
Returns
true
if the map maps one or more keys to the specified value
.
inherited
-
get(K key)
→ V?
-
Returns the value corresponding to the given
key
, or null
if such a key is not present in the map.
inherited
-
getOrDefault(K key, V defaultValue)
→ V
-
Returns the value corresponding to the given
key
, or defaultValue
if such a key is not present in the map.
inherited
-
isEmpty()
→ bool
-
Returns
true
if the map is empty (contains no elements), false
otherwise.
inherited
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
put(K key, V value)
→ V?
-
Associates the specified
value
with the specified key
in the map.
inherited
-
putAll(KtMap<K, V> from)
→ void
-
Updates this map with key/value pairs from the specified map
from
.
inherited
-
remove(K key)
→ V?
-
Removes the specified key and its corresponding value from this map.
inherited
-
removeMapping(K key, V value)
→ bool
-
Removes the entry for the specified key only if it is mapped to the specified value.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Operators
-
operator ==(Object other)
→ bool
-
The equality operator.
inherited
-
operator [](K key)
→ V?
-
Returns the value corresponding to the given
key
, or null
if such a key is not present in the map.
inherited
-
operator []=(K key, V value)
→ void
-
Associates the specified
value
with the specified key
in the map.
inherited