Class UniqueArrayList<E>

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<E>
io.github.connellite.collections.UniqueArrayList<E>
All Implemented Interfaces:
Serializable, Cloneable, Iterable<E>, Collection<E>, List<E>, RandomAccess

public class UniqueArrayList<E> extends ArrayList<E>
ArrayList that allows each distinct element (by equals) at most once. add / addAll ignore duplicates; order follows successful insertions.

contains(Object) and containsAll(Collection) use the internal set (same as HashSet semantics, including at most one null).

subList(int, int) returns an unmodifiable view of the corresponding range.

See Also: