Class NoDupeList<E>

java.lang.Object
net.md_5.specialsource.util.NoDupeList<E>
Type Parameters:
E - the type of elements contained in this 'list'
All Implemented Interfaces:
Iterable<E>

public class NoDupeList<E> extends Object implements Iterable<E>
A pseudo class implementing the List like, but does not allow duplicates. Is backed by an ArrayList and HashSet for speedy contains lookups.
  • Constructor Details

    • NoDupeList

      public NoDupeList()
  • Method Details

    • add

      public boolean add(E e)
    • get

      public E get(int index)
    • size

      public int size()
    • remove

      public void remove(E e)
    • iterator

      public Iterator<E> iterator()
      Specified by:
      iterator in interface Iterable<E>