Package opennlp.uima.util
Klasse AnnotationComparator
java.lang.Object
opennlp.uima.util.AnnotationComparator
- Alle implementierten Schnittstellen:
Comparator<org.apache.uima.cas.text.AnnotationFS>
public class AnnotationComparator
extends Object
implements Comparator<org.apache.uima.cas.text.AnnotationFS>
Checks two
annotations
for equality.-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungint
compare
(org.apache.uima.cas.text.AnnotationFS a, org.apache.uima.cas.text.AnnotationFS b) Compares the start indexes of the annotations.Von Klasse geerbte Methoden java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Von Schnittstelle geerbte Methoden java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Konstruktordetails
-
AnnotationComparator
public AnnotationComparator()
-
-
Methodendetails
-
compare
public int compare(org.apache.uima.cas.text.AnnotationFS a, org.apache.uima.cas.text.AnnotationFS b) Compares the start indexes of the annotations.- Angegeben von:
compare
in SchnittstelleComparator<org.apache.uima.cas.text.AnnotationFS>
- Parameter:
a
- - firstannotation
.b
- - secondannotation
.- Gibt zurück:
- 0 if equals, < 0 if before and > 0 if after
-