@Deprecated public class FastVector<E> extends java.util.ArrayList<E> implements Copyable, RevisionHandler
Constructor and Description |
---|
FastVector()
Deprecated.
Constructs an empty vector with initial capacity zero.
|
FastVector(int capacity)
Deprecated.
Constructs a vector with the given capacity.
|
Modifier and Type | Method and Description |
---|---|
void |
addElement(E element)
Deprecated.
Adds an element to this vector.
|
void |
appendElements(java.util.Collection<? extends E> toAppend)
Deprecated.
Appends all elements of the supplied vector to this vector.
|
FastVector<E> |
copy()
Deprecated.
Produces a shallow copy of this vector.
|
FastVector<E> |
copyElements()
Deprecated.
Clones the vector and shallow copies all its elements.
|
E |
elementAt(int index)
Deprecated.
Returns the element at the given position.
|
java.util.Enumeration<E> |
elements()
Deprecated.
Returns an enumeration of this vector.
|
java.util.Enumeration<E> |
elements(int index)
Deprecated.
Returns an enumeration of this vector, skipping the element with the given
index.
|
E |
firstElement()
Deprecated.
Returns the first element of the vector.
|
java.lang.String |
getRevision()
Deprecated.
Returns the revision string.
|
void |
insertElementAt(E element,
int index)
Deprecated.
Inserts an element at the given position.
|
E |
lastElement()
Deprecated.
Returns the last element of the vector.
|
void |
removeAllElements()
Deprecated.
Removes all components from this vector and sets its size to zero.
|
void |
removeElementAt(int index)
Deprecated.
Deletes an element from this vector.
|
void |
setCapacity(int capacity)
Deprecated.
Sets the vector's capacity to the given value.
|
void |
setElementAt(E element,
int index)
Deprecated.
Sets the element at the given index.
|
void |
swap(int first,
int second)
Deprecated.
Swaps two elements in the vector.
|
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSize
public FastVector()
public FastVector(int capacity)
capacity
- the vector's initial capacitypublic final void addElement(E element)
element
- the element to addpublic final FastVector<E> copy()
public final FastVector<E> copyElements()
public final E elementAt(int index)
index
- the element's indexpublic final java.util.Enumeration<E> elements()
public final java.util.Enumeration<E> elements(int index)
index
- the element to skippublic final E firstElement()
public final void insertElementAt(E element, int index)
element
- the element to be insertedindex
- the element's indexpublic final E lastElement()
public final void removeElementAt(int index)
index
- the index of the element to be deletedpublic final void removeAllElements()
public final void appendElements(java.util.Collection<? extends E> toAppend)
toAppend
- the FastVector containing elements to append.public final void setCapacity(int capacity)
capacity
- the new capacitypublic final void setElementAt(E element, int index)
element
- the element to be put into the vectorindex
- the index at which the element is to be placedpublic final void swap(int first, int second)
first
- index of the first elementsecond
- index of the second elementpublic java.lang.String getRevision()
getRevision
in interface RevisionHandler