© 2006-2007 ETH Zurich

org.ximtec.igesture.util
Class DoubleVector

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<Double>
              extended by 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

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
DoubleVector(int size)
          Constructs a new double vector.
 
Method Summary
 double[] toDoubleArray()
          Returns a double array of the vector's content.
 String toString()
           
 
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
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

DoubleVector

public DoubleVector(int size)
Constructs a new double vector.

Parameters:
size - the initial size of the double vector.
Method Detail

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>

© 2006-2007 ETH Zurich

Copyright © 2007-2010 Global Information Systems Group, ETH Zurich. All Rights Reserved.