Class UniqueList<T extends Comparable<? super T>>

  • Type Parameters:
    T - the generic type
    All Implemented Interfaces:
    Serializable, Cloneable, Iterable<T>, Collection<T>, List<T>, RandomAccess

    public class UniqueList<T extends Comparable<? super T>>
    extends ArrayList<T>
    UniqueList is a successor of java.util.Vector to provide a collection that contains no duplicate elements, more formally such that e1.compareTo(e2) == 0.

    The collection is kept ordered whenever elements added or removed and besides uniqueness it is to provide fast element search based again on e1.compareTo(e2) values.

    See Also:
    Serialized Form