public int compareTo(Object other){
  @SuppressWarnings("unchecked") Ranking<V> otherRanking=(Ranking<V>)other;
  return Double.compare(otherRanking.rankScore,rankScore);
}

public int compareTo ( Object other ) { @ SuppressWarnings ( "unchecked" ) Ranking < V > otherRanking = ( Ranking < V > ) other ; return Double . compare ( otherRanking . rankScore , rankScore ) ; }
compares two ranking based on the rank score .
