org.ximtec.igesture.util
Class DoubleVector
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<Double>
org.ximtec.igesture.util.DoubleVector
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<Double>, Collection<Double>, List<Double>, RandomAccess
public class DoubleVector
- extends ArrayList<Double>
Implements a vector of double values and provides some basic functionality.
- Version:
- 1.0, Dec 2006
- Author:
- Ueli Kurmann, igesture@uelikurmann.ch, Beat Signer, signer@inf.ethz.ch
- See Also:
- Serialized Form
|
Constructor Summary |
DoubleVector(int size)
Constructs a new double vector. |
| Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
DoubleVector
public DoubleVector(int size)
- Constructs a new double vector.
- Parameters:
size - the initial size of the double vector.
toDoubleArray
public double[] toDoubleArray()
- Returns a double array of the vector's content.
- Returns:
- a double array of the vector's content.
toString
public String toString()
- Overrides:
toString in class AbstractCollection<Double>
Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.