CopyOnWriteHashMap

class CopyOnWriteHashMap<K : Any, V : Any>

This is an internal implementation for copy-on-write concurrent map. It is very limited since it is not intended as general purpose implementation.

Constructors

<init>

CopyOnWriteHashMap()

This is an internal implementation for copy-on-write concurrent map. It is very limited since it is not intended as general purpose implementation.

Functions

computeIfAbsent

fun computeIfAbsent(key: K, producer: (key: K) -> V): V

get

operator fun get(key: K): V?

put

fun put(key: K, value: V): V?

remove

fun remove(key: K): V?

set

operator fun set(key: K, value: V): Unit

Operator function for array access syntax