public interface DoubleVector extends Vector<Double>
Methods which modify the state of a Vector are optional.
Implementations that are not modifiable should throw an UnsupportedOperationException if such methods are called. These methods are
marked as "optional" in the specification for the interface.
| Modifier and Type | Method and Description |
|---|---|
double |
add(int index,
double delta)
Changes the value in this vector by a specified amount (optional
operation).
|
double |
get(int index)
Returns the value of this vector at the given index.
|
Double |
getValue(int index)
Returns the value of the vector at the given index as a
Double. |
void |
set(int index,
double value)
Sets the length in this vector (optional operation).
|
double[] |
toArray()
Returns a double array representing this vector.
|
double add(int index,
double delta)
index - index to change.delta - the amount to change by.double get(int index)
index - index to retrieve.Double getValue(int index)
Double.void set(int index,
double value)
index - index to set.value - value to set in the vector.double[] toArray()
double array of this vector.Copyright © 2012. All Rights Reserved.