public class IndexValue extends Object
Constructor and Description |
---|
IndexValue(int index,
double value)
Creates a new IndexValue
|
Modifier and Type | Method and Description |
---|---|
int |
getIndex()
Returns the index of the stored value
|
double |
getValue()
Returns the value of the stored index
|
void |
setIndex(int index)
Sets the index associated with the value.
|
void |
setValue(double value)
Sets the value associated with the index
|
public IndexValue(int index, double value)
index
- the index for the given valuevalue
- the value at the specified indexpublic void setIndex(int index)
index
- the new indexpublic void setValue(double value)
value
- the new valuepublic int getIndex()
public double getValue()
Copyright © 2017. All rights reserved.