HashMap

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

Constructs an empty HashMap instance.


actual constructor(initialCapacity: Int)(source)


actual constructor(initialCapacity: Int, loadFactor: Float)(source)

Constructs an empty HashMap instance.

Parameters

initialCapacity

the initial capacity (ignored)

loadFactor

the load factor (ignored)

Throws

if the initial capacity or load factor are negative


actual constructor(original: Map<out K, V>)(source)

Constructs an instance of HashMap filled with the contents of the specified original map.

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