toolbox
Class DoubleArray

java.lang.Object
  extended bytoolbox.DoubleArray

public class DoubleArray
extends java.lang.Object

A resizable array of double values (like a Vector for doubles but faster)

Author:
Hendrik Dahlkamp

Field Summary
private  int capacityIncrement
           
private  double[] data
           
private  int elementCount
           
 
Constructor Summary
DoubleArray()
           
DoubleArray(int initialSize)
           
DoubleArray(int initialSize, int _capacityIncrement)
           
 
Method Summary
 void add(double value)
           
 void clear()
           
 boolean contains(double value)
           
 double elementAt(int index)
           
private  void ensureCapacityHelper(int minCapacity)
           
 double[] getElements()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

private double[] data

elementCount

private int elementCount

capacityIncrement

private int capacityIncrement
Constructor Detail

DoubleArray

public DoubleArray()

DoubleArray

public DoubleArray(int initialSize)

DoubleArray

public DoubleArray(int initialSize,
                   int _capacityIncrement)
Method Detail

add

public void add(double value)

elementAt

public double elementAt(int index)

getElements

public double[] getElements()

ensureCapacityHelper

private void ensureCapacityHelper(int minCapacity)

contains

public boolean contains(double value)

clear

public void clear()

size

public int size()