This class extends the hashset, but adds its own members.
Linkedhashset keeps a list of links to the entries in that group, in the order in which they are inserted. This makes the insertion sequence an iterative collection.
That is, when a linkedhashset loop is used by an iterator, the element is returned in the order in which they were inserted.
The hash code, used as the data in which the key is associated, is stored in the index. The key is converted to its hash code automatically.
The Linkedhashset class supports four constructors. The first form constructs a default hash collection:
Linkedhashset()
The following constructor initializes the hash using the C element set.
Linkedhashset(Collection c)
The following constructor initializes the ability to set the hash to capacity.
The capacity is automatically grown as an element is added to the hash.
Linkedhashset(int capacity)
[B, A, D, E, C, F]
Java Linkedhashset Class