public class DGrowArray
extends java.lang.Object
| Constructor and Description |
|---|
DGrowArray() |
DGrowArray(int length) |
| Modifier and Type | Method and Description |
|---|---|
void |
free() |
double |
get(int index) |
void |
grow(int amount)
Increases the internal array's length by the specified amount.
|
int |
length() |
void |
reshape(int length)
Changes the array's length and doesn't attempt to preserve previous values if a new array is required
|
void |
set(DGrowArray original) |
void |
set(int index,
double value) |
public int length()
public void reshape(int length)
length - New array lengthpublic void grow(int amount)
amount - Number of elements added to the internal array's lengthpublic void set(DGrowArray original)
public double get(int index)
public void set(int index,
double value)
public void free()