Class HashSet
Represents a HashSet
| Constructor | Description |
|---|---|
| HashSet() | Constructs a new HashMap. |
| HashSet(Collection) | Construct a new HashSet by initializing the HashSet with the elements of the given collection. |
| Method | Description |
|---|---|
| clone() | Returns a shallow copy of this set. |
add, add1, addAll, clear, contains, containsAll, getLength, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray
assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values
- HashSet()
Constructs a new HashMap.
- HashSet(collection: Collection)
Construct a new HashSet by initializing the HashSet with the elements of the given collection.
Parameters:
- collection - the collection to add to the set.
- clone(): HashSet
Returns a shallow copy of this set.
Returns:
- a shallow copy of this set.