Class OrderedHashSet<T>

  • All Implemented Interfaces:
    Serializable, Cloneable, Iterable<T>, Collection<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 OrderedHashSet.
    See Also:
    Serialized Form
    • Field Detail

      • elements

        protected List<T> elements
        Track the elements as they are added to the set
    • Constructor Detail

      • OrderedHashSet

        public OrderedHashSet()