E
- TODO: Add unit test casepublic class UniqueList<E> extends ArrayList<E>
ArrayList
will contain only unique values, where unique is defined by ArrayList.contains(Object)
if it already exists or not.modCount
Constructor and Description |
---|
UniqueList() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E element) |
void |
add(int index,
E element) |
boolean |
addAll(Collection<? extends E> c) |
boolean |
addAll(int index,
Collection<? extends E> c) |
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
equals, hashCode
containsAll, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
containsAll, equals, hashCode
parallelStream, stream
public boolean add(E element)
public void add(int index, E element)
public boolean addAll(Collection<? extends E> c)
Copyright © 2018. All rights reserved.