Class AnnotationChooser

java.lang.Object
de.unistuttgart.ims.uima.io.xml.AnnotationChooser
All Implemented Interfaces:
java.util.Comparator<org.apache.uima.jcas.tcas.Annotation>

public class AnnotationChooser
extends java.lang.Object
implements java.util.Comparator<org.apache.uima.jcas.tcas.Annotation>
A comparator for annotations, using the character positions of the involved annotations. We're ignoring type priorities etc., the ordering is determined only on character positions.
Author:
reiterns
  • Constructor Summary

    Constructors 
    Constructor Description
    AnnotationChooser​(int cPos)  
  • Method Summary

    Modifier and Type Method Description
    int compare​(org.apache.uima.jcas.tcas.Annotation o1, org.apache.uima.jcas.tcas.Annotation o2)  

    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

  • Method Details

    • compare

      public int compare​(org.apache.uima.jcas.tcas.Annotation o1, org.apache.uima.jcas.tcas.Annotation o2)
      Specified by:
      compare in interface java.util.Comparator<org.apache.uima.jcas.tcas.Annotation>