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 fun ConcurrentMap(initialCapacity: Int = INITIAL_CAPACITY)
actual fun ConcurrentMap(initialCapacity: Int)
actual fun ConcurrentMap(initialCapacity: Int)
actual fun ConcurrentMap(initialCapacity: Int)

Functions

Link copied to clipboard
abstract fun clear()
open override fun clear()
open override fun clear()
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, out Value?>): Value?
Link copied to clipboard
abstract fun containsKey(key: Key): Boolean
open override fun containsKey(key: Key): Boolean
open override fun containsKey(key: Key): Boolean
open override fun containsKey(key: Key): Boolean
Link copied to clipboard
abstract fun containsValue(value: Value): Boolean
open override fun containsValue(value: Value): Boolean
open override fun containsValue(value: Value): Boolean
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
abstract operator fun get(key: Key): Value?
open operator override fun get(key: Key): Value?
open operator override fun get(key: Key): Value?
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
abstract fun isEmpty(): Boolean
open override fun isEmpty(): Boolean
open override fun isEmpty(): Boolean
open override fun isEmpty(): Boolean
Link copied to clipboard
open fun merge(p0: Key, p1: Value, p2: BiFunction<in Value, in Value, out Value?>): Value?
Link copied to clipboard
abstract fun put(key: Key, value: Value): Value?
open override fun put(key: Key, value: Value): Value?
open override fun put(key: Key, value: Value): Value?
open override fun put(key: Key, value: Value): Value?
Link copied to clipboard
abstract fun putAll(from: Map<out Key, Value>)
open override fun putAll(from: Map<out Key, Value>)
open override fun putAll(from: Map<out Key, Value>)
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
abstract fun remove(key: Key): Value?

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

Removes key from map if it is mapped to value.

open override fun remove(key: Key): Value?
actual fun remove(key: Key, value: Value): Boolean
open override fun remove(key: Key): Value?
actual open override fun remove(key: Key, value: Value): Boolean
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

Properties

entries
Link copied to clipboard
keys
Link copied to clipboard
abstract override val keys: MutableSet<Key>
open override val keys: MutableSet<Key>
open override val keys: MutableSet<Key>
open override val keys: MutableSet<Key>
size
Link copied to clipboard
abstract val size: Int
open override val size: Int
open override val size: Int
open override val size: Int
values
Link copied to clipboard
abstract override val values: MutableCollection<Value>
open override val values: MutableCollection<Value>
open override val values: MutableCollection<Value>
open override val values: MutableCollection<Value>