public class STextualRelationSStartComparator extends Object implements Comparator<STextualRelation>, Serializable
| Constructor and Description |
|---|
STextualRelationSStartComparator() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(STextualRelation o1,
STextualRelation 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(STextualRelation o1, STextualRelation o2)
compare in interface Comparator<STextualRelation>Copyright © 2009–2020 Humboldt-Universität zu Berlin, INRIA. All rights reserved.