HashSet

expect constructor()(source)
expect constructor(initialCapacity: Int)(source)
expect constructor(initialCapacity: Int, loadFactor: Float)(source)
expect constructor(elements: Collection<E>)(source)
actual constructor()(source)

Constructs a new empty HashSet.


actual constructor(initialCapacity: Int)(source)


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

Constructs a new empty HashSet.

Parameters

initialCapacity

the initial capacity (ignored)

loadFactor

the load factor (ignored)

Throws

if the initial capacity or load factor are negative


actual constructor(elements: Collection<E>)(source)

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

actual constructor()(source)
actual constructor(initialCapacity: Int)(source)
actual constructor(initialCapacity: Int, loadFactor: Float)(source)
actual constructor(elements: Collection<E>)(source)