ConcurrentHashMap

actual constructor()
actual constructor(initialCapacity: Int)
actual constructor(initialCapacity: Int, loadFactor: Float)
actual constructor(original: Map<K, V>)
expect constructor()

Parameters

K

the type of keys maintained by this map (must be non-nullable)

V

the type of mapped values (must be non-nullable)


expect constructor(initialCapacity: Int)

Creates a new ConcurrentHashMap with the specified initial capacity.

Parameters

initialCapacity

the initial capacity of the map


expect constructor(initialCapacity: Int, loadFactor: Float)

Creates a new ConcurrentHashMap with the specified initial capacity and load factor.

Parameters

initialCapacity

the initial capacity of the map

loadFactor

the load factor of the map


expect constructor(original: Map<K, V>)

Creates a new ConcurrentHashMap containing all mappings from the specified map.

Parameters

original

the map whose mappings are to be copied

actual constructor()
actual constructor(initialCapacity: Int)
actual constructor(initialCapacity: Int, loadFactor: Float)
actual constructor(original: Map<K, V>)
actual constructor()
actual constructor(initialCapacity: Int)
actual constructor(initialCapacity: Int, loadFactor: Float)
actual constructor(original: Map<K, V>)
actual constructor()
actual constructor(initialCapacity: Int)
actual constructor(initialCapacity: Int, loadFactor: Float)
actual constructor(original: Map<K, V>)