public class TokenStartComparator extends Object implements Comparator<SToken>, Serializable
| Constructor and Description |
|---|
TokenStartComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(SToken o1,
SToken o2)
Returns -1 if o1 has less text position than o2, 0 if both have equal
positions and 1 if o1 has higher text position than o2.
|
SDocumentGraph |
getDocumentGraph()
Returns the
SDocumentGraph object which contains the tokens to be
compared. |
void |
setDocumentGraph(SDocumentGraph documentGraph)
Sets the
SDocumentGraph object which contains the tokens to be
compared. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongpublic SDocumentGraph getDocumentGraph()
SDocumentGraph object which contains the tokens to be
compared.public void setDocumentGraph(SDocumentGraph documentGraph)
SDocumentGraph object which contains the tokens to be
compared.documentGraph - container graphpublic int compare(SToken o1, SToken o2)
compare in interface Comparator<SToken>Copyright © 2009–2019 Humboldt-Universität zu Berlin, INRIA. All rights reserved.