public class SortedDoubleVector
extends java.lang.Object
Constructor and Description |
---|
SortedDoubleVector()
Constructor.
|
SortedDoubleVector(java.util.ArrayList<java.lang.Double> values) |
Modifier and Type | Method and Description |
---|---|
void |
add(double value)
Add a value to the collection.
|
void |
clear()
Clear out the collection.
|
double |
getValue(int index)
Returns the value at a given index.
|
java.util.ArrayList<java.lang.Double> |
getValues()
Returns underlying ArrayList, for testing purposes only.
|
void |
remove(double value)
Remove a value from the collection.
|
int |
size()
Returns the number of items in the collection.
|
public SortedDoubleVector()
public SortedDoubleVector(java.util.ArrayList<java.lang.Double> values)
public void clear()
public int size()
public double getValue(int index)
index
- for which to return value forpublic void add(double value)
value
- is the double-type value to addpublic void remove(double value)
value
- to removejava.lang.IllegalStateException
- if the value has not been addedpublic java.util.ArrayList<java.lang.Double> getValues()