public final class VectorSet
extends java.util.Vector
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 c) |
VectorSet(int initialCapacity) |
VectorSet(int initialCapacity,
int capacityIncrement) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
java.lang.Object o)
This implementation may not add the element at the given index
if it is already contained in the collection.
|
boolean |
add(java.lang.Object o) |
boolean |
addAll(java.util.Collection c) |
boolean |
addAll(int index,
java.util.Collection c)
This implementation may not add all elements at the given index
if any of them are already contained in the collection.
|
void |
addElement(java.lang.Object o) |
void |
clear() |
java.lang.Object |
clone() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection c) |
void |
insertElementAt(java.lang.Object o,
int index) |
java.lang.Object |
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) |
java.lang.Object |
set(int index,
java.lang.Object o) |
void |
setElementAt(java.lang.Object o,
int index) |
capacity, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, setSize, size, subList, toArray, toArray, toString, trimToSize
public VectorSet()
public VectorSet(int initialCapacity)
public VectorSet(int initialCapacity, int capacityIncrement)
public VectorSet(java.util.Collection c)
public boolean add(java.lang.Object o)
add
in interface java.util.Collection
add
in interface java.util.List
add
in class java.util.Vector
public void add(int index, java.lang.Object o)
add
in interface java.util.List
add
in class java.util.Vector
public void addElement(java.lang.Object o)
addElement
in class java.util.Vector
public boolean addAll(java.util.Collection c)
addAll
in interface java.util.Collection
addAll
in interface java.util.List
addAll
in class java.util.Vector
public boolean addAll(int index, java.util.Collection c)
addAll
in interface java.util.List
addAll
in class java.util.Vector
public void clear()
clear
in interface java.util.Collection
clear
in interface java.util.List
clear
in class java.util.Vector
public java.lang.Object clone()
clone
in class java.util.Vector
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection
contains
in interface java.util.List
contains
in class java.util.Vector
public boolean containsAll(java.util.Collection c)
containsAll
in interface java.util.Collection
containsAll
in interface java.util.List
containsAll
in class java.util.Vector
public void insertElementAt(java.lang.Object o, int index)
insertElementAt
in class java.util.Vector
public java.lang.Object remove(int index)
remove
in interface java.util.List
remove
in class java.util.Vector
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection
remove
in interface java.util.List
remove
in class java.util.Vector
public boolean removeAll(java.util.Collection c)
removeAll
in interface java.util.Collection
removeAll
in interface java.util.List
removeAll
in class java.util.Vector
public void removeAllElements()
removeAllElements
in class java.util.Vector
public boolean removeElement(java.lang.Object o)
removeElement
in class java.util.Vector
public void removeElementAt(int index)
removeElementAt
in class java.util.Vector
public void removeRange(int fromIndex, int toIndex)
removeRange
in class java.util.Vector
public boolean retainAll(java.util.Collection c)
retainAll
in interface java.util.Collection
retainAll
in interface java.util.List
retainAll
in class java.util.Vector
public java.lang.Object set(int index, java.lang.Object o)
set
in interface java.util.List
set
in class java.util.Vector
public void setElementAt(java.lang.Object o, int index)
setElementAt
in class java.util.Vector