window
Class Fingerprint

java.lang.Object
  extended bywindow.Fingerprint
All Implemented Interfaces:
java.lang.Comparable

public class Fingerprint
extends java.lang.Object
implements java.lang.Comparable

A bean contains the value of a fingerprint and data about its place in the document It'll be sorted according to its value in some places so it must be Comparable

See Also:
Comparable

Field Summary
private  int position
          The position in the document
private  int value
          The hash value
private  int whereSelected
          The position of the window when this gram selected
 
Constructor Summary
Fingerprint(int value, int position, int offset)
           
 
Method Summary
 int compareTo(java.lang.Object arg0)
           
 int getPosition()
           
 int getValue()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

value

private int value
The hash value


position

private int position
The position in the document


whereSelected

private int whereSelected
The position of the window when this gram selected

Constructor Detail

Fingerprint

public Fingerprint(int value,
                   int position,
                   int offset)
Method Detail

getPosition

public int getPosition()

getValue

public int getValue()

toString

public java.lang.String toString()

compareTo

public int compareTo(java.lang.Object arg0)
Specified by:
compareTo in interface java.lang.Comparable