window
Class Fingerprint
java.lang.Object
window.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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
Fingerprint
public Fingerprint(int value,
int position,
int offset)
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