Class OrderedHashSet<T>

All Implemented Interfaces:
Serializable, Cloneable, Iterable<T>, Collection<T>, SequencedCollection<T>, SequencedSet<T>, Set<T>

public class OrderedHashSet<T> extends LinkedHashSet<T>
A HashMap that remembers the order that the elements were added. You can alter the ith element with set(i,value) too :) Unique list. I need the replace/set-element-i functionality so I'm subclassing LinkedHashSet.
See Also:
  • Field Details

    • elements

      protected ArrayList<T> elements
      Track the elements as they are added to the set
  • Constructor Details

    • OrderedHashSet

      public OrderedHashSet()
  • Method Details