public class ArrayUnenforcedSet<E>
extends java.util.ArrayList<E>
implements java.util.Set<E>
Note that for equals/hashCode, the class implements the Set behavior (unordered), not the list behavior (ordered); the fact that it subclasses ArrayList should be considered an implementation detail.
Constructor and Description |
---|
ArrayUnenforcedSet() |
ArrayUnenforcedSet(java.util.Collection<? extends E> c) |
ArrayUnenforcedSet(int n) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
finalize, getClass, notify, notifyAll, wait, wait, wait
public ArrayUnenforcedSet()
public ArrayUnenforcedSet(java.util.Collection<? extends E> c)
public ArrayUnenforcedSet(int n)