public class NodeIndex extends NodeIndexBase implements Comparable<NodeIndex>
Objects of this class should not be created directly as they are part of the internal logic.
For more information see: 51Degrees pattern data model.
relatedNodeOffsetdataSet, index| Constructor and Description |
|---|
NodeIndex(Dataset dataSet,
int index,
boolean isString,
byte[] value,
int relatedNodeOffset)
Constructs a new instance of NodeIndex
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(NodeIndex other)
Compares this node index to another.
|
String |
toString()
Converts the node index into a string.
|
compareTo, compareTo, getDataSet, getIndex, getIsNumeric, getNumber, readIntegerArraypublic NodeIndex(Dataset dataSet, int index, boolean isString, byte[] value, int relatedNodeOffset)
dataSet - The data set the node is contained withinindex - The index of this object in the NodeisString - True if the value is an integer offset to a string, or
false if the value is an array of characters to be used by the node.value - Array of bytes representing an integer offset to a string,
or the array of characters to be used by the node.relatedNodeOffset - The offset in the list of nodes to the node the
index relates topublic int compareTo(NodeIndex other)
compareTo in interface Comparable<NodeIndex>other - The node index to compareCopyright © 2015 51Degrees. All rights reserved.