@ Override public int compareTo ( Term other ) { ImmutableTerm self = this ; if ( self . getDeclaringVocabulary ( ) != other . getDeclaringVocabulary ( ) ) { throw new ClassCastException ( ) ; } return self . ordinal - other . ordinal ( ) ; }
Compares this term with the specified object for order . Returns a negative integer zero or a positive integer as this object is less than equal to or greater than the specified object .