Map
A collection that holds pairs of objects (keys and values) and supports efficiently retrieving the value corresponding to each key. Map keys are unique; the map holds only one value for each key. Methods in this interface support only read-only access to the map; read-write access is supported through the MutableMap interface.
Since Kotlin
1.0Parameters
the type of map keys. The map is invariant in its key type, as it can accept key as a parameter (of containsKey for example) and return it in keys set.
the type of map values. The map is covariant in its value type.
Types
Functions
Returns true if the map contains the specified key.
Returns true if the map maps one or more keys to the specified value.
Properties
Returns a read-only Collection of all values in this map. Note that this collection may contain duplicate values.
Inheritors
Extensions
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.