LinkedHashSet

fun LinkedHashSet()
fun LinkedHashSet(initialCapacity: Int)
fun <E> LinkedHashSet(elements: Collection<E>)
fun LinkedHashSet(initialCapacity: Int)
JS
fun LinkedHashSet()

Constructs a new empty LinkedHashSet.

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

Parameters

Throws

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

Constructs a new empty LinkedHashSet.

Parameters

initialCapacity

the initial capacity (ignored)

loadFactor

the load factor (ignored)

Throws

if the initial capacity or load factor are negative

JS
fun <E> LinkedHashSet(elements: Collection<E>)

Constructs a new LinkedHashSet filled with the elements of the specified collection.