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 and Description |
---|
VectorSet() |
VectorSet(java.util.Collection<? extends E> c) |
VectorSet(int initialCapacity) |
VectorSet(int initialCapacity,
int capacityIncrement) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E o) |
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 |
addAll(java.util.Collection<? extends E> c) |
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.
|
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) |
capacity, 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, trimToSize
public VectorSet()
public VectorSet(int initialCapacity)
public VectorSet(int initialCapacity, int capacityIncrement)
public VectorSet(java.util.Collection<? extends E> c)
public boolean add(E o)
public void add(int index, E o)
public boolean addAll(java.util.Collection<? extends E> c)
public boolean addAll(int index, java.util.Collection<? extends E> c)
public void clear()
public java.lang.Object clone()
clone
in class java.util.Vector<E>
public boolean contains(java.lang.Object o)
public boolean containsAll(java.util.Collection<?> c)
public void insertElementAt(E o, int index)
insertElementAt
in class java.util.Vector<E>
public E remove(int index)
public boolean remove(java.lang.Object o)
public boolean removeAll(java.util.Collection<?> c)
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)