gate.util
Class AnnotationDiffer.PairingOffsetComparator

java.lang.Object
  extended by gate.util.AnnotationDiffer.PairingOffsetComparator
All Implemented Interfaces:
Comparator<AnnotationDiffer.Pairing>
Enclosing class:
AnnotationDiffer

public static class AnnotationDiffer.PairingOffsetComparator
extends Object
implements Comparator<AnnotationDiffer.Pairing>

Compares two choices based on start offset of key (or response if key not present) and type if offsets are equal.


Constructor Summary
AnnotationDiffer.PairingOffsetComparator()
           
 
Method Summary
 int compare(AnnotationDiffer.Pairing first, AnnotationDiffer.Pairing second)
          Compares two choices based on start offset of key (or response if key not present) and type if offsets are equal.
 
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
 

Constructor Detail

AnnotationDiffer.PairingOffsetComparator

public AnnotationDiffer.PairingOffsetComparator()
Method Detail

compare

public int compare(AnnotationDiffer.Pairing first,
                   AnnotationDiffer.Pairing second)
Compares two choices based on start offset of key (or response if key not present) and type if offsets are equal.

Specified by:
compare in interface Comparator<AnnotationDiffer.Pairing>