@ Override public int compareTo ( Object o ) { SortedClassProbability other = ( SortedClassProbability ) o ; if ( this . probability < other . probability ) { return - 1 ; } else if ( this . probability > other . probability ) { return 1 ; } else { return 0 ; } }
Comparison implementation for this object type .