HashSet

constructor(initialCapacity: Int = 16)(source)

creates an empty set with the requested capacity; the default request is 16.

Parameters

initialCapacity

requested backing-map bucket capacity, not the initial size or an element limit.

Type Parameters

T

element type.