HashSet

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

Constructs a new empty HashSet.

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

Parameters

Throws

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

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

Native
fun HashSet(initialCapacity: Int, loadFactor: Float = 0.0f)

Parameters

Throws

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

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