uk.org.redfelineninja.risk.data
Class StringVector

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--uk.org.redfelineninja.risk.data.StringVector
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.util.RandomAccess, java.io.Serializable

public class StringVector
extends java.util.Vector

This class provides alternative fetch methods on a Vector that have String return types and perform type safety operations. Objects that are not Strings should not really be added to this Vector.

Author:
Daniel Thompson, Feb 1999
See Also:
Serialized Form

Constructor Summary
StringVector()
           
 
Method Summary
 void copyInto(java.lang.String[] array)
          Copies the compenents of this vector to the specified array of Strings.
 java.lang.String stringAt(int index)
          Returns the component at the specified index as a String.
 
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, 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
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

StringVector

public StringVector()
Method Detail

stringAt

public final java.lang.String stringAt(int index)
Returns the component at the specified index as a String.


copyInto

public final void copyInto(java.lang.String[] array)
Copies the compenents of this vector to the specified array of Strings. The array must be large enough to contains all the elements of this Vector.