HashSet

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

Constructs a new empty HashSet.


actual fun HashSet(initialCapacity: Int)(source)


actual fun HashSet(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 fun <E> HashSet(elements: Collection<E>)(source)

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

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