public final class VectorSet<E>
extends java.util.Vector<E>
This is not a general purpose class but has been written because
the protected members of DirectoryScanner prohibited
later revisions from using a more efficient collection.
Methods are synchronized to keep Vector's contract.
| Constructor | Description |
|---|---|
VectorSet() |
|
VectorSet(int initialCapacity) |
|
VectorSet(int initialCapacity,
int capacityIncrement) |
|
VectorSet(java.util.Collection<? extends E> c) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
add(int index,
E o) |
This implementation may not add the element at the given index
if it is already contained in the collection.
|
boolean |
add(E o) |
|
boolean |
addAll(int index,
java.util.Collection<? extends E> c) |
This implementation may not add all elements at the given index
if any of them are already contained in the collection.
|
boolean |
addAll(java.util.Collection<? extends E> c) |
|
void |
addElement(E o) |
|
void |
clear() |
|
java.lang.Object |
clone() |
|
boolean |
contains(java.lang.Object o) |
|
boolean |
containsAll(java.util.Collection<?> c) |
|
void |
insertElementAt(E o,
int index) |
|
E |
remove(int index) |
|
boolean |
remove(java.lang.Object o) |
|
boolean |
removeAll(java.util.Collection<?> c) |
|
void |
removeAllElements() |
|
boolean |
removeElement(java.lang.Object o) |
|
void |
removeElementAt(int index) |
|
void |
removeRange(int fromIndex,
int toIndex) |
|
boolean |
retainAll(java.util.Collection<?> c) |
|
E |
set(int index,
E o) |
|
void |
setElementAt(E o,
int index) |
finalize, getClass, notify, notifyAll, wait, wait, waitcapacity, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, forEach, get, hashCode, indexOf, indexOf, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, removeIf, replaceAll, setSize, size, sort, spliterator, subList, toArray, toArray, toString, trimToSizepublic VectorSet()
public VectorSet(int initialCapacity)
public VectorSet(int initialCapacity,
int capacityIncrement)
public VectorSet(java.util.Collection<? extends E> c)
public void add(int index,
E o)
add in class java.util.Vector<E>public boolean addAll(java.util.Collection<? extends E> c)
addAll in class java.util.Vector<E>public boolean addAll(int index,
java.util.Collection<? extends E> c)
addAll in class java.util.Vector<E>public void clear()
clear in class java.util.Vector<E>public java.lang.Object clone()
clone in class java.util.Vector<E>public boolean contains(java.lang.Object o)
contains in class java.util.Vector<E>public boolean containsAll(java.util.Collection<?> c)
containsAll in class java.util.Vector<E>public void insertElementAt(E o, int index)
insertElementAt in class java.util.Vector<E>public boolean remove(java.lang.Object o)
remove in class java.util.Vector<E>public boolean removeAll(java.util.Collection<?> c)
removeAll in class java.util.Vector<E>public void removeAllElements()
removeAllElements in class java.util.Vector<E>public boolean removeElement(java.lang.Object o)
removeElement in class java.util.Vector<E>public void removeElementAt(int index)
removeElementAt in class java.util.Vector<E>public void removeRange(int fromIndex,
int toIndex)
removeRange in class java.util.Vector<E>public boolean retainAll(java.util.Collection<?> c)
retainAll in class java.util.Vector<E>