Package org.apache.torque.util
Class UniqueList<T>
java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractList<T>
java.util.ArrayList<T>
org.apache.torque.util.UniqueList<T>
- Type Parameters:
T- the type of objects contained in the List.
- All Implemented Interfaces:
Serializable,Cloneable,Iterable<T>,Collection<T>,List<T>,RandomAccess
List with unique entries. UniqueList does not allow null nor duplicates.
- Version:
- $Id: UniqueList.java 1839288 2018-08-27 09:48:33Z tv $
- Author:
- Martin Poeschl
- See Also:
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty UniqueList.UniqueList(UniqueList<T> list) Copy-constructor. -
Method Summary
Methods inherited from class java.util.ArrayList
add, addAll, addAll, clear, clone, contains, ensureCapacity, equals, forEach, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, stream, toArrayMethods inherited from interface java.util.List
containsAll
-
Constructor Details
-
UniqueList
public UniqueList()Constructs an empty UniqueList. -
UniqueList
Copy-constructor. Creates a shallow copy of an UniqueList.- Parameters:
list- the uniqueList to copy
-
-
Method Details