org.apache.tools.ant.util
public final class VectorSet extends 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.
Since: Ant 1.8.0
Constructor Summary | |
---|---|
VectorSet() | |
VectorSet(int initialCapacity) | |
VectorSet(int initialCapacity, int capacityIncrement) | |
VectorSet(Collection c) |
Method Summary | |
---|---|
boolean | add(Object o) |
void | add(int index, Object o)
This implementation may not add the element at the given index
if it is already contained in the collection. |
boolean | addAll(Collection c) |
boolean | addAll(int index, 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(Object o) |
void | clear() |
Object | clone() |
boolean | contains(Object o) |
boolean | containsAll(Collection c) |
void | insertElementAt(Object o, int index) |
Object | remove(int index) |
boolean | remove(Object o) |
boolean | removeAll(Collection c) |
void | removeAllElements() |
boolean | removeElement(Object o) |
void | removeElementAt(int index) |
void | removeRange(int fromIndex, int toIndex) |
boolean | retainAll(Collection c) |
Object | set(int index, Object o) |
void | setElementAt(Object o, int index) |