uk.org.redfelineninja.risk.data
Class ContinentVector

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

public class ContinentVector
extends java.util.Vector

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

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

Constructor Summary
ContinentVector()
           
 
Method Summary
 Continent continentAt(int index)
          Returns the component at the specified index as a String.
 void copyInto(Continent[] array)
          Copies the compenents of this vector to the specified array of Continents.
 
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

ContinentVector

public ContinentVector()
Method Detail

continentAt

public final Continent continentAt(int index)
Returns the component at the specified index as a String.


copyInto

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