You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by sc...@apache.org on 2015/05/04 23:04:56 UTC
svn commit: r1677686 -
/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/FSIndexComparatorImpl.java
Author: schor
Date: Mon May 4 21:04:55 2015
New Revision: 1677686
URL: http://svn.apache.org/r1677686
Log:
no Jira add trivial getTypeCode() method to have more transparent code for doing this, and augment one comment
Modified:
uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/FSIndexComparatorImpl.java
Modified: uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/FSIndexComparatorImpl.java
URL: http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/FSIndexComparatorImpl.java?rev=1677686&r1=1677685&r2=1677686&view=diff
==============================================================================
--- uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/FSIndexComparatorImpl.java (original)
+++ uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/cas/impl/FSIndexComparatorImpl.java Mon May 4 21:04:55 2015
@@ -69,6 +69,10 @@ public class FSIndexComparatorImpl imple
public Type getType() {
return this.type;
}
+
+ int getTypeCode() {
+ return ((TypeImpl)this.type).getCode();
+ }
public int addKey(Feature feat, int compareKey) {
if (!checkType(feat.getRange())) {
@@ -190,6 +194,10 @@ public class FSIndexComparatorImpl imple
}
/**
+ * Compares two FSIndexComparator instances.
+ *
+ * The code to compare two FSs is in the compare method of FSLeafIndexImpl.
+ *
* @see java.lang.Comparable#compareTo(Object)
*/
public int compareTo(FSIndexComparator o) {