public class DynamicDoubleArray extends DynamicArray
Copyright 2001-2007 Partner Software, Inc.
| Modifier and Type | Field and Description |
|---|---|
double[] |
array |
arrayObject, capacity, end, fastGrowthFactor, fastGrowthLimit, slowGrowthAmount, start| Constructor and Description |
|---|
DynamicDoubleArray()
Creates an empty double array, with size and capacity of 0.
|
DynamicDoubleArray(double... contents)
Creates a double array with the given initial contents.
|
DynamicDoubleArray(DynamicFloatArray floats)
Creates a double array, copying the contents of the given
DynamicFloatArray. |
DynamicDoubleArray(int capacity)
Creates a double array of the given capacity.
|
DynamicDoubleArray(java.lang.String values)
Creates a double array, parsing the given input string as a space-delimited list of values.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(double what)
Appends a single double to the end of this array.
|
void |
append(double... stuff)
Appends the given doubles to the end of this array.
|
java.lang.String |
contentsToString()
Returns the contents as a String.
|
void |
newArray(int size)
Allocates a new, empty array of the given size and assign it to the
arrayObject property.
|
double[] |
toDoubleArray() |
append, clear, copy, copy, copyExactly, copyFrom, copyTo, insert, isEmpty, makeRoomFor, makeRoomFor, pack, remove, size, subsection, tidy, toStringpublic DynamicDoubleArray()
public DynamicDoubleArray(int capacity)
public DynamicDoubleArray(double... contents)
public DynamicDoubleArray(DynamicFloatArray floats)
DynamicFloatArray.floats - float array to copy.public DynamicDoubleArray(java.lang.String values)
public void add(double what)
public void append(double... stuff)
public double[] toDoubleArray()
public java.lang.String contentsToString()
public void newArray(int size)
DynamicArray
public abstract void newArray(int size) {
arrayObject = array = new Foo[size];
}
newArray in class DynamicArray