Map

@Serializable(with = MapSerializer::class)
interface Map<K, out V> : MapLike<K, V> , Collection<MapEntry<K, V>>

Inheritors

Functions

Link copied to clipboard
abstract fun <K2, V2> associate(transformer: (MapEntry<K, V>) -> MapEntry<K2, V2>): Map<K2, V2>
Link copied to clipboard
abstract operator override fun contains(element: MapEntry<K, V>): Boolean
Link copied to clipboard
abstract fun containsAll(elements: Collection<MapEntry<K, V>>): Boolean
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
abstract fun filter(predicate: (MapEntry<K, V>) -> Boolean): List<MapEntry<K, V>>
Link copied to clipboard
abstract fun first(): MapEntry<K, V>
Link copied to clipboard
abstract fun firstOrNull(): MapEntry<K, V>?
Link copied to clipboard
abstract fun forEach(lambda: (item: MapEntry<K, V>) -> Unit)
Link copied to clipboard
abstract fun forEachWithIndex(lambda: (item: MapEntry<K, V>, index: Int) -> Unit)
Link copied to clipboard
abstract operator override fun get(key: K): V?
Link copied to clipboard
abstract fun getValue(key: K): V
Link copied to clipboard
abstract fun isEmpty(): Boolean
Link copied to clipboard
abstract operator fun iterator(): Iterator<MapEntry<K, V>>
Link copied to clipboard
abstract fun <R> map(transform: (item: MapEntry<K, V>) -> R): List<R>
Link copied to clipboard
abstract fun <R> mapToArray(transform: (item: MapEntry<K, V>) -> R): Array<R>
Link copied to clipboard
abstract fun <R> mapToArrayWithIndex(transform: (item: MapEntry<K, V>, index: Int) -> R): Array<R>
Link copied to clipboard
abstract fun <R> mapWithIndex(transform: (item: MapEntry<K, V>, index: Int) -> R): List<R>
Link copied to clipboard
inline fun <E> Collection<E>.toIList(): List<E>
Link copied to clipboard
inline fun <K, V> Map<K, V>.toIMap(): Map<K, V>
Link copied to clipboard
Link copied to clipboard
inline fun <K, V> Map<K, V>.toIMutableMap(): MutableMap<K, V>
Link copied to clipboard
Link copied to clipboard
inline fun <E> Collection<E>.toISet(): Set<E>

Properties

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