Class LinkedHashSet
The class LinkedHashSet implements a hash set with a guaranteed iteration order. The elements are iterated in the order they have been added to the HashSet.
| Constructor | Description |
|---|---|
| LinkedHashSet() | Constructs a new LinkHashSet. |
| LinkedHashSet(Collection) | Constructor for a new LinkedHashSet. |
| 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
- LinkedHashSet()
Constructs a new LinkHashSet.
- LinkedHashSet(collection: Collection)
Constructor for a new LinkedHashSet. The constructor initializes the LinkedHashSet with the elements of the given collection.
Parameters:
- collection - the collection of items to insert into this set.
- clone(): LinkedHashSet
Returns a shallow copy of this set.
Returns:
- a shallow copy of this set.