public class UniqueList
extends java.util.Vector
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.
As from above, the collection implies that all its elements must implement Comparable interface.
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.
| 构造器和说明 |
|---|
UniqueList() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
add(java.lang.Object obj) |
protected boolean |
add(java.lang.Object obj,
java.util.Comparator c) |
boolean |
addAll(java.util.Collection c) |
void |
insertElementAt(java.lang.Object obj,
int index) |
add, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSizepublic boolean add(java.lang.Object obj)
add 在接口中 java.util.Collectionadd 在接口中 java.util.Listadd 在类中 java.util.Vectorprotected boolean add(java.lang.Object obj,
java.util.Comparator c)
public void insertElementAt(java.lang.Object obj,
int index)
insertElementAt 在类中 java.util.Vectorpublic boolean addAll(java.util.Collection c)
addAll 在接口中 java.util.CollectionaddAll 在接口中 java.util.ListaddAll 在类中 java.util.Vector