Class SuffixCoordinates

java.lang.Object
  extended bySuffixCoordinates

final class SuffixCoordinates
extends java.lang.Object

Holds the coordinates of this leaf can have more than one set of coordinates, since this suffix can be suffix to more than one string.


Field Summary
private  SuffixCoordinates nextCoordinates
          the next coordinate object
private  int position
          the position of the suffix associated with this leaf node Note that the position is calculated relatively to the first char of the first string added to the tree
 
Constructor Summary
(package private) SuffixCoordinates(int position, SuffixCoordinates nextCoordinates)
           
 
Method Summary
 SuffixCoordinates getNext()
          returns the next coordinate object
 int getPosition()
          returns the position of the suffix
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

position

private final int position
the position of the suffix associated with this leaf node Note that the position is calculated relatively to the first char of the first string added to the tree


nextCoordinates

private SuffixCoordinates nextCoordinates
the next coordinate object

Constructor Detail

SuffixCoordinates

SuffixCoordinates(int position,
                  SuffixCoordinates nextCoordinates)
Method Detail

getPosition

public final int getPosition()
returns the position of the suffix


getNext

public final SuffixCoordinates getNext()
returns the next coordinate object


toString

public java.lang.String toString()