|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.util.AbstractCollection | +--java.util.AbstractList | +--java.util.Vector | +--coreComponents.DoubleVector
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)
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 |
public DoubleVector()
Method Detail |
public void addDouble(double dValue)
public double getDouble(int index)
index
- the index in the vector to returnpublic void setDouble(int index, double dValue)
index
- the index in the vector to setdValue
- the double value to set to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) 2003 David Lindsay, Computer Learning Research Centre, Dept. Computer Science, Royal Holloway, University of London