public class DataNode extends Object
A node has two elements, an index and a value.
| Constructor and Description |
|---|
DataNode() |
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex()
Returns the index of the node.
|
double |
getValue()
Returns the value of the node.
|
void |
setIndex(int idx)
Sets the index of the node.
|
void |
setValue(double val)
Sets the value of the node.
|
public int getIndex()
int, the index of the nodepublic double getValue()
double, the value of the nodepublic void setIndex(int idx)
idx - an int, the index of the nodepublic void setValue(double val)
val - a double, the value of the nodeCopyright © 2020 Rogue Wave Software. All rights reserved.