Class AnnotationComparator
java.lang.Object
org.apache.uima.caseditor.editor.util.AnnotationComparator
- All Implemented Interfaces:
Serializable
,Comparator<AnnotationFS>
Checks two annotations for equality.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compare
(AnnotationFS a, AnnotationFS b) Compares the given annotations a and b.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
AnnotationComparator
public AnnotationComparator()
-
-
Method Details
-
compare
Compares the given annotations a and b. This implementations only compares the begin index.- Specified by:
compare
in interfaceComparator<AnnotationFS>
- Parameters:
a
- the ab
- the b- Returns:
- the int
-