public class Map extends BaseEntity implements Comparable<Map>
| Modifier and Type | Field and Description |
|---|---|
private String |
name |
private int |
nameIndex |
| Constructor and Description |
|---|
Map(Dataset dataSet,
int index,
BinaryReader reader)
Constructs a new instance of NodeIndex
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Map other)
Compares this node index to another.
|
String |
getName()
The name of the map.
|
(package private) void |
init()
Called after the entire data set has been loaded to ensure any further
initialisation steps that require other items in the data set can be
completed.
|
String |
toString()
Converts the node index into a string.
|
binarySearch, getDataSet, getIndex, readIntegerArrayprivate String name
private final int nameIndex
public Map(Dataset dataSet, int index, BinaryReader reader)
dataSet - The data set the node is contained withinindex - The index of this object in the Nodepublic String getName() throws IOException
IOExceptionvoid init() throws IOException
IOExceptionpublic int compareTo(Map other)
compareTo in interface Comparable<Map>other - The node index to compare