Script: Class dw.util.HashSet

Class HashSet

Represents a HashSet

Constructor Summary

HashSet()

Constructs a new HashMap.

HashSet(collection : Collection)

Construct a new HashSet by initializing the HashSet with the elements of the given collection.

Method Summary

clone() : HashSet

Returns a shallow copy of this set.

Methods inherited from class Collection

add, add1, addAll, clear, contains, containsAll, getLength, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray

Methods inherited from class Object

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

Constructor Detail

HashSet

publicHashSet()

Constructs a new HashMap.


HashSet

publicHashSet(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.


Method Detail

clone

clone() : HashSet

Returns a shallow copy of this set.

Returns:

a shallow copy of this set.