ConcurrentMap

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

Ktor concurrent map implementation. Please do not use it.

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

Ktor concurrent map implementation. Please do not use it.

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

Ktor concurrent map implementation. Please do not use it.

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

Ktor concurrent map implementation. Please do not use it.

Constructors

Link copied to clipboard
expect constructor(initialCapacity: Int = INITIAL_CAPACITY)
actual constructor(initialCapacity: Int)
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>>
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>
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
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>
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()
actual open override fun clear()
Link copied to clipboard
open fun compute(p0: Key, p1: BiFunction<in Key, in Value?, out Value?>): Value?
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.

open fun computeIfAbsent(p0: Key, p1: Function<in Key, out Value>): Value
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
open fun computeIfPresent(p0: Key, p1: BiFunction<in Key, in Value & Any, out Value?>): Value?
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
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
actual open override fun containsValue(value: Value): Boolean
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
open operator override fun equals(other: Any?): Boolean
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open fun forEach(p0: BiConsumer<in Key, in Value>)
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?
actual open operator override fun get(key: Key): Value?
Link copied to clipboard
open fun getOrDefault(key: Key, defaultValue: Value): Value
Link copied to clipboard
open override fun hashCode(): Int
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
actual open override fun isEmpty(): Boolean
Link copied to clipboard
open fun merge(p0: Key, p1: Value & Any, p2: BiFunction<in Value & Any, in Value & Any, out Value?>): Value?
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?
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>)
actual open override fun putAll(from: Map<out Key, Value>)
Link copied to clipboard
open fun putIfAbsent(p0: Key, p1: Value): 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 fun remove(key: Key, value: Value): Boolean
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
Link copied to clipboard
open fun replace(p0: Key, p1: Value): Value?
open fun replace(p0: Key, p1: Value, p2: Value): Boolean
Link copied to clipboard
open fun replaceAll(p0: BiFunction<in Key, in Value, out Value>)
Link copied to clipboard
open override fun toString(): String
open override fun toString(): String
open override fun toString(): String