Package opennlp.uima.util
Class AnnotationComparator
- java.lang.Object
- 
- opennlp.uima.util.AnnotationComparator
 
- 
- All Implemented Interfaces:
- Comparator<org.apache.uima.cas.text.AnnotationFS>
 
 public class AnnotationComparator extends Object implements Comparator<org.apache.uima.cas.text.AnnotationFS> Checks twoannotationsfor equality.
- 
- 
Constructor SummaryConstructors Constructor Description AnnotationComparator()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(org.apache.uima.cas.text.AnnotationFS a, org.apache.uima.cas.text.AnnotationFS b)Compares the start indexes of the annotations.- 
Methods inherited from class java.lang.Objectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface java.util.Comparatorequals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
 
- 
 
- 
- 
- 
Method Detail- 
comparepublic int compare(org.apache.uima.cas.text.AnnotationFS a, org.apache.uima.cas.text.AnnotationFS b)Compares the start indexes of the annotations.- Specified by:
- comparein interface- Comparator<org.apache.uima.cas.text.AnnotationFS>
- Parameters:
- a- - first- annotation.
- b- - second- annotation.
- Returns:
- 0 if equals, < 0 if before and > 0 if after
 
 
- 
 
-