PlatformMap

expect class PlatformMap<K, V>
actual value class PlatformMap<K, V>
actual typealias PlatformMap = JsMap<K, V>
actual typealias PlatformMap = LinkedHashMap<K, V>

Constructors

Link copied to clipboard
expect fun PlatformMap()
actual fun PlatformMap()

Properties

Link copied to clipboard
val storage: NSMutableDictionary

Extensions

Link copied to clipboard
inline fun <K, V> PlatformMap<K, V>.asMap(): Map<K, V>
Link copied to clipboard
expect fun <K, V> PlatformMap<K, V>.asMutableMap(): MutableMap<K, V>
actual fun <K, V> PlatformMap<K, V>.asMutableMap(): MutableMap<K, V>
Link copied to clipboard
expect fun <K, V> PlatformMap<K, V>.clear()
actual inline fun <K, V> PlatformMap<K, V>.clear()
Link copied to clipboard
expect operator fun <K, V> PlatformMap<K, V>.contains(key: K): Boolean
actual inline operator fun <K, V> PlatformMap<K, V>.contains(key: K): Boolean
Link copied to clipboard
expect operator fun <K, V> PlatformMap<K, V>.get(key: K): V?
actual inline operator fun <K, V> PlatformMap<K, V>.get(key: K): V?
Link copied to clipboard
expect fun <K, V> PlatformMap<K, V>.isEmpty(): Boolean
actual inline fun <K, V> PlatformMap<K, V>.isEmpty(): Boolean
Link copied to clipboard
inline fun <K, V> PlatformMap<K, V>.isNotEmpty(): Boolean
Link copied to clipboard
expect fun <K, V> PlatformMap<K, V>.put(key: K, value: V)
actual inline fun <K, V> PlatformMap<K, V>.put(key: K, value: V)
Link copied to clipboard
expect fun <K, V> PlatformMap<K, V>.remove(key: K)
actual inline fun <K, V> PlatformMap<K, V>.remove(key: K)
Link copied to clipboard
expect val <K, V> PlatformMap<K, V>.size: Int
actual val <K, V> PlatformMap<K, V>.size: Int
Link copied to clipboard
inline fun <K, V> PlatformMap<K, V>.toMap(): Map<K, V>
Link copied to clipboard
expect fun <K, V> PlatformMap<K, V>.toMutableMap(): MutableMap<K, V>
actual inline fun <K, V> PlatformMap<K, V>.toMutableMap(): MutableMap<K, V>