coreComponents
Class DoubleVector

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

public class DoubleVector
extends java.util.Vector

Implements a vector class that can be used to store double values, like having a dynamic array of doubles (saves all the conversions to and from Double)

Version:
$Revision: 1.0 $
Author:
David Lindsay (davidl@cs.rhul.ac.uk)
See Also:
Serialized Form

Constructor Summary
DoubleVector()
           
 
Method Summary
 void addDouble(double dValue)
          Simply adds a double value to a vector
 double getDouble(int index)
          Simply returns a double value to a vector at a particular index
 void setDouble(int index, double dValue)
          Simply sets a double value to a vector at a particular index
 
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

DoubleVector

public DoubleVector()
Method Detail

addDouble

public void addDouble(double dValue)
Simply adds a double value to a vector


getDouble

public double getDouble(int index)
Simply returns a double value to a vector at a particular index

Parameters:
index - the index in the vector to return

setDouble

public void setDouble(int index,
                      double dValue)
Simply sets a double value to a vector at a particular index

Parameters:
index - the index in the vector to set
dValue - the double value to set to


Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London