javatools.util
Class IndexedVector

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--javatools.util.IndexedVector
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable

public class IndexedVector
extends java.util.Vector

A vector and an index.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
IndexedVector()
          Creates new IndexedVector
IndexedVector(java.util.Collection c)
          Creates a new IndexedVector.
IndexedVector(int initialCapacity)
          Creates a new IndexedVector.
IndexedVector(int initialCapacity, int capacityIncrement)
          Creates a new IndexedVector.
 
Method Summary
 java.lang.Object getIndex()
          Returns the index of this vector.
 void setIndex(java.lang.Object pIndex)
          Sets the index for this vector.
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

IndexedVector

public IndexedVector()
Creates new IndexedVector


IndexedVector

public IndexedVector(java.util.Collection c)
Creates a new IndexedVector.

Parameters:
c - The collection to use.

IndexedVector

public IndexedVector(int initialCapacity)
Creates a new IndexedVector.

Parameters:
initialCapacity - The initial capacity for this vector.

IndexedVector

public IndexedVector(int initialCapacity,
                     int capacityIncrement)
Creates a new IndexedVector.

Parameters:
initialCapacity - The initial capacity for this vector.
capacityIncrement - The capacity increment for this vector.
Method Detail

setIndex

public void setIndex(java.lang.Object pIndex)
Sets the index for this vector.

Parameters:
pIndex - The index.

getIndex

public java.lang.Object getIndex()
Returns the index of this vector.

Returns:
The index.