public class DefaultAnnotationComparator extends java.lang.Object implements FSImplComparator
Constructor and Description |
---|
DefaultAnnotationComparator(CASImpl cas) |
Modifier and Type | Method and Description |
---|---|
int |
compare(int addr1,
int addr2)
Compare two annotations.
|
public DefaultAnnotationComparator(CASImpl cas)
public int compare(int addr1, int addr2)
compare
in interface FSImplComparator
addr1
- Address of FS1.addr2
- Address of FS2.-1
, if FS1 is "smaller" than FS2; 1
, if FS2 is smaller
than FS1; and 0
, if FS1 equals FS2.Copyright © 2012. All Rights Reserved.