KtMutableMapExtensions<K, V> extension
- on
-
- KtMutableMap<
K, V>
- KtMutableMap<
Properties
-
dart
→ Map<
K, V> -
Available on KtMutableMap<
Creates a Map instance that wraps the original KtMap. It acts as a view.K, V> , provided by the KtMutableMapExtensions extensionno setter
Methods
-
getOrPut(
K key, V defaultValue()) → V -
Available on KtMutableMap<
Returns the value for the given key. If the key is not found in the map, calls theK, V> , provided by the KtMutableMapExtensions extensiondefaultValue
function, puts its result into the map under the given key and returns it. -
iterator(
) → KtMutableIterator< KtMutableMapEntry< K, V> > -
Available on KtMutableMap<
Returns an Iterator over the entries in the Map.K, V> , provided by the KtMutableMapExtensions extension -
putAllPairs(
KtIterable< KtPair< pairs) → voidK, V> > -
Available on KtMutableMap<
Puts all the givenK, V> , provided by the KtMutableMapExtensions extensionpairs
into this KtMutableMap with the first component in the pair being the key and the second the value. -
putIfAbsent(
K key, V value) → V? -
Available on KtMutableMap<
If the specified key is not already associated with a value (or is mapped toK, V> , provided by the KtMutableMapExtensions extensionnull
) associates it with the given value and returnsnull
, else returns the current value.