AbstractMap
Provides a skeletal implementation of the read-only Map interface.
The implementor is required to implement entries property, which should return read-only set of map entries.
Since Kotlin
1.1Parameters
the type of map keys. The map is invariant in its key type.
the type of map values. The map is covariant in its value type.
Provides a skeletal implementation of the read-only Map interface.
The implementor is required to implement entries property, which should return read-only set of map entries.
Since Kotlin
1.1Parameters
the type of map keys. The map is invariant in its key type.
the type of map values. The map is covariant in its value type.
Properties
Returns a read-only Collection of all values in this map.
Returns a read-only Collection of all values in this map.
Functions
Returns a new map containing all key-value pairs matching the given predicate.
Returns a map containing all key-value pairs with keys matching the given predicate.
Returns a new map containing all key-value pairs not matching the given predicate.
Returns a map containing all key-value pairs with values matching the given predicate.
Returns the value corresponding to the given key, or null
if such a key is not present in the map.
Returns the value corresponding to the given key, or null
if such a key is not present in the map.
Returns the value corresponding to the given key, or defaultValue if such a key is not present in the map.
Returns the value for the given key, or the result of the defaultValue function if there was no entry for the given key.
Returns the value for the given key or throws an exception if there is no such key in the map.
Returns the value of the property for the given object from this read-only map.
Returns the value for the given key or throws an exception if there is no such key in the map.
Returns the value of the property for the given object from this read-only map.
Populates the given destination map with entries having the keys obtained by applying the transform function to each entry in this Map and the values of this map.
Populates the given destination map with entries having the keys obtained by applying the transform function to each entry in this Map and the values of this map.
Populates the given destination map with entries having the keys of this map and the values obtained by applying the transform function to each entry in this Map.
Populates the given destination map with entries having the keys of this map and the values obtained by applying the transform function to each entry in this Map.
Returns a map containing all entries of the original map except the entry with the given key.
Returns a map containing all entries of the original map except those entries the keys of which are contained in the given keys array.
Returns a map containing all entries of the original map except those entries the keys of which are contained in the given keys collection.
Returns a map containing all entries of the original map except those entries the keys of which are contained in the given keys sequence.
Returns a map containing all entries of the original map except the entry with the given key.
Returns a map containing all entries of the original map except those entries the keys of which are contained in the given keys array.
Returns a map containing all entries of the original map except those entries the keys of which are contained in the given keys collection.
Returns a map containing all entries of the original map except those entries the keys of which are contained in the given keys sequence.
Creates a new read-only map by replacing or adding entries to this map from a given array of key-value pairs.
Creates a new read-only map by replacing or adding an entry to this map from a given key-value pair.
Creates a new read-only map by replacing or adding entries to this map from a given collection of key-value pairs.
Creates a new read-only map by replacing or adding entries to this map from another map.
Creates a new read-only map by replacing or adding entries to this map from a given sequence of key-value pairs.
Creates a new read-only map by replacing or adding entries to this map from a given array of key-value pairs.
Creates a new read-only map by replacing or adding an entry to this map from a given key-value pair.
Creates a new read-only map by replacing or adding entries to this map from a given collection of key-value pairs.
Creates a new read-only map by replacing or adding entries to this map from another map.
Creates a new read-only map by replacing or adding entries to this map from a given sequence of key-value pairs.
Returns a new read-only map containing all key-value pairs from the original map.
Populates and returns the destination mutable map with key-value pairs from the given map.
Returns a new read-only map containing all key-value pairs from the original map.
Populates and returns the destination mutable map with key-value pairs from the given map.
Returns a new mutable map containing all key-value pairs from the original map.
Returns a new mutable map containing all key-value pairs from the original map.
Converts this Map to a Properties object.
Converts this Map to a SortedMap. The resulting SortedMap determines the equality and order of keys according to their natural sorting order.
Converts this Map to a SortedMap. The resulting SortedMap determines the equality and order of keys according to the sorting order provided by the given comparator.
Returns a wrapper of this read-only map, having the implicit default value provided with the specified function defaultValue.