ConcurrentMap

expect class ConcurrentMap<Key, Value>(initialCapacity: Int = INITIAL_CAPACITY) : MutableMap<Key, Value> (source)

Ktor concurrent map implementation. Please do not use it.

Report a problem

actual class ConcurrentMap<Key, Value>(initialCapacity: Int) : MutableMap<Key, Value> (source)

Ktor concurrent map implementation. Please do not use it.

Report a problem

actual class ConcurrentMap<Key, Value>(initialCapacity: Int) : MutableMap<Key, Value> (source)

Ktor concurrent map implementation. Please do not use it.

Report a problem

Constructors

Link copied to clipboard
expect constructor(initialCapacity: Int = INITIAL_CAPACITY)
actual constructor(initialCapacity: Int)
actual constructor(initialCapacity: Int)

Properties

Link copied to clipboard
expect open override val entries: MutableSet<MutableMap.MutableEntry<Key, Value>>
actual open override val entries: MutableSet<MutableMap.MutableEntry<Key, Value>>
actual open override val entries: MutableSet<MutableMap.MutableEntry<Key, Value>>
Link copied to clipboard
expect open override val keys: MutableSet<Key>
actual open override val keys: MutableSet<Key>
actual open override val keys: MutableSet<Key>
Link copied to clipboard
expect open override val size: Int
actual open override val size: Int
actual open override val size: Int
Link copied to clipboard
expect open override val values: MutableCollection<Value>
actual open override val values: MutableCollection<Value>
actual open override val values: MutableCollection<Value>

Functions

Link copied to clipboard
expect open override fun clear()
actual open override fun clear()
actual open override fun clear()
Link copied to clipboard
expect fun computeIfAbsent(key: Key, block: () -> Value): Value

Computes block and inserts result in map. The block will be evaluated at most once.

actual fun computeIfAbsent(key: Key, block: () -> Value): Value

Computes block and inserts result in map. The block will be evaluated at most once.

actual fun computeIfAbsent(key: Key, block: () -> Value): Value

Computes block and inserts result in map. The block will be evaluated at most once.

Link copied to clipboard
expect open override fun containsKey(key: Key): Boolean
actual open override fun containsKey(key: Key): Boolean
actual open override fun containsKey(key: Key): Boolean
Link copied to clipboard
expect open override fun containsValue(value: Value): Boolean
actual open override fun containsValue(value: Value): Boolean
actual open override fun containsValue(value: Value): Boolean
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
expect open operator override fun get(key: Key): Value?
actual open operator override fun get(key: Key): Value?
actual open operator override fun get(key: Key): Value?
hashCode
Link copied to clipboard
open override fun hashCode(): Int
open override fun hashCode(): Int
Link copied to clipboard
expect open override fun isEmpty(): Boolean
actual open override fun isEmpty(): Boolean
actual open override fun isEmpty(): Boolean
Link copied to clipboard
expect open override fun put(key: Key, value: Value): Value?
actual open override fun put(key: Key, value: Value): Value?
actual open override fun put(key: Key, value: Value): Value?
Link copied to clipboard
expect open override fun putAll(from: Map<out Key, Value>)
actual open override fun putAll(from: Map<out Key, Value>)
actual open override fun putAll(from: Map<out Key, Value>)
Link copied to clipboard
expect open override fun remove(key: Key): Value?

expect fun remove(key: Key, value: Value): Boolean

Removes key from map if it is mapped to value.

actual open override fun remove(key: Key): Value?
actual open override fun remove(key: Key, value: Value): Boolean
actual open override fun remove(key: Key): Value?
actual fun remove(key: Key, value: Value): Boolean
toString
Link copied to clipboard
open override fun toString(): String
open override fun toString(): String