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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompare(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, waitMethods 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:
comparein interfaceComparator<AnnotationFS>- Parameters:
a- the ab- the b- Returns:
- the int
-