MultiMap

class MultiMap<K, V>(mapData: Map<K, List<V>>) : Map<K, V>

Simplify access to multivalued maps. It looks for first elements, but all values can be accessed through the allValues field.

Constructors

Link copied to clipboard
fun <K, V> MultiMap(mapData: List<Pair<K, V>>)
Link copied to clipboard
fun <K, V> MultiMap(mapData: Map<K, List<V>>)

Functions

Link copied to clipboard
open override fun containsKey(key: K): Boolean
Link copied to clipboard
open override fun containsValue(value: V): Boolean
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open fun forEach(p0: BiConsumer<in K, in V>)
Link copied to clipboard
open operator override fun get(key: K): V?
Link copied to clipboard
open fun getOrDefault(key: K, defaultValue: V): V
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun isEmpty(): Boolean
Link copied to clipboard
operator fun minus(element: K): MultiMap<K, V>
Link copied to clipboard
operator fun plus(element: MultiMap<K, V>): MultiMap<K, V>
operator fun plus(element: Pair<K, V>): MultiMap<K, V>
operator fun plus(element: Map<K, V>): MultiMap<K, V>
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val allPairs: List<Pair<K, V>>
Link copied to clipboard
val allValues: Map<K, List<V>>
Link copied to clipboard
open override val entries: Set<Map.Entry<K, V>>
Link copied to clipboard
open override val keys: Set<K>
Link copied to clipboard
open override val size: Int
Link copied to clipboard
open override val values: Collection<V>