Class AnnotationComparator

java.lang.Object
org.apache.uima.caseditor.editor.util.AnnotationComparator
All Implemented Interfaces:
Serializable, Comparator<AnnotationFS>

public class AnnotationComparator extends Object implements Comparator<AnnotationFS>, Serializable
Checks two annotations for equality.
See Also:
  • Constructor Details

    • AnnotationComparator

      public AnnotationComparator()
  • Method Details

    • compare

      public int compare(AnnotationFS a, AnnotationFS b)
      Compares the given annotations a and b. This implementations only compares the begin index.
      Specified by:
      compare in interface Comparator<AnnotationFS>
      Parameters:
      a - the a
      b - the b
      Returns:
      the int