LinkedHashMap

fun LinkedHashMap()
fun LinkedHashMap(initialCapacity: Int)
fun <K, V> LinkedHashMap(original: Map<out K, V>)
fun LinkedHashMap(initialCapacity: Int)
JS
fun LinkedHashMap()

Constructs an empty LinkedHashMap instance.

Common
fun LinkedHashMap(initialCapacity: Int, loadFactor: Float = 0.0f)

Parameters

Throws

JS
fun LinkedHashMap(initialCapacity: Int, loadFactor: Float = 0.0f)

Constructs an empty LinkedHashMap instance.

Parameters

initialCapacity

the initial capacity (ignored)

loadFactor

the load factor (ignored)

Throws

if the initial capacity or load factor are negative

JS
fun <K, V> LinkedHashMap(original: Map<out K, V>)

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