ThreadSafeMap

actual class ThreadSafeMap<K, V>
actual class ThreadSafeMap<K, V>
expect class ThreadSafeMap<K, V>

Constructors

Link copied to clipboard
constructor()
constructor()
expect constructor()

Functions

Link copied to clipboard
actual fun clear()
actual fun clear()
expect fun clear()
Link copied to clipboard
actual fun findFirst(predicate: (V) -> Boolean): V?

Finds the first value in the map that matches the given condition.

actual fun findFirst(predicate: (V) -> Boolean): V?
expect fun findFirst(predicate: (V) -> Boolean): V?
Link copied to clipboard
actual fun get(key: K): V?
actual fun get(key: K): V?
expect fun get(key: K): V?
Link copied to clipboard
actual fun getAll(): MutableCollection<V>
actual fun getAll(): MutableCollection<V>
expect fun getAll(): MutableCollection<V>
Link copied to clipboard
actual fun getOrPut(key: K, defaultValue: () -> V): V
actual fun getOrPut(key: K, defaultValue: () -> V): V
expect fun getOrPut(key: K, defaultValue: () -> V): V
Link copied to clipboard
actual fun put(key: K, value: V)
actual fun put(key: K, value: V)
expect fun put(key: K, value: V)
Link copied to clipboard
actual fun remove(key: K)
actual fun remove(key: K)
expect fun remove(key: K)
Link copied to clipboard
open override fun toString(): String