fiftyone.mobile.detection.entities
Class Map

java.lang.Object
  extended by fiftyone.mobile.detection.entities.BaseEntity
      extended by fiftyone.mobile.detection.entities.Map
All Implemented Interfaces:
Comparable<Map>

public class Map
extends BaseEntity
implements Comparable<Map>

A node index contains the characters and related child nodes of the current node should any of the characters match at the position.


Field Summary
private  String name
           
private  int nameIndex
           
 
Constructor Summary
Map(Dataset dataSet, int index, BinaryReader reader)
          Constructs a new instance of NodeIndex
 
Method Summary
 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.
 
Methods inherited from class fiftyone.mobile.detection.entities.BaseEntity
binarySearch, getDataSet, getIndex, readIntegerArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

name

private String name

nameIndex

private final int nameIndex
Constructor Detail

Map

public Map(Dataset dataSet,
           int index,
           BinaryReader reader)
Constructs a new instance of NodeIndex

Parameters:
dataSet - The data set the node is contained within
index - The index of this object in the Node
Method Detail

getName

public String getName()
               throws IOException
The name of the map.

Throws:
IOException

init

void init()
    throws IOException
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.

Throws:
IOException

compareTo

public int compareTo(Map other)
Compares this node index to another.

Specified by:
compareTo in interface Comparable<Map>
Parameters:
other - The node index to compare
Returns:
Indication of relative value based on ComponentId field

toString

public String toString()
Converts the node index into a string.

Overrides:
toString in class Object
Returns:
a string representation of the node characters