public class DoubleArray extends Object
Constructor and Description |
---|
DoubleArray() |
Modifier and Type | Method and Description |
---|---|
void |
add(double value)
Adds an element to the end of this expandable array.
|
void |
clear()
Remove all elements from this collection.
|
double |
get(int index)
Access the element at the given index.
|
int |
getSize()
Access the size of this array.
|
void |
set(int index,
double value)
Modify the element at the given index.
|
void |
setSize(int n)
Modify the size of this array.
|
double[] |
toArray()
Convert this array into a native array.
|
public void add(double value)
value
- to be added to end of arraypublic void clear()
public double get(int index)
index
- the index of the element to retrieve.public int getSize()
public void set(int index, double value)
index
- the index of the element to modify.value
- the new index-th element value.public void setSize(int n)
n
- the new array size.public double[] toArray()
Jas4pp 1.5 © Java Analysis Studio for Particle Physics