public int compareTo ( ItemAndSupport other ) { if ( other . support == this . support ) { return this . item - other . item ; } else { return other . support - this . support ; } }
Returns a negative integer zero or a positive integer as this object s support is less than equal to or greater than the specified object s support .