MultiMap

interface MultiMap<K, V> : Map<K, List<V>>

Extension of the Map interface that stores multiple values.

Parameters

the value element type

Functions

Link copied to clipboard
abstract fun containsKey(key: K): Boolean
Link copied to clipboard
abstract fun containsValue(value: List<V>): Boolean
Link copied to clipboard
abstract operator fun get(key: K): List<V>?
Link copied to clipboard
abstract fun getFirst(key: K): V?

Return the first value for the given key.

Link copied to clipboard
abstract fun isEmpty(): Boolean
Link copied to clipboard
fun <K, V> Map<K, List<V>>.toMultiMap(): MultiMap<K, V>

Return a MultiMap containing the given Map entries.

Properties

Link copied to clipboard
abstract val entries: Set<Map.Entry<K, List<V>>>
Link copied to clipboard
abstract val keys: Set<K>
Link copied to clipboard
abstract val size: Int
Link copied to clipboard
abstract val values: Collection<List<V>>