public int compareTo(AssociationRule other){
  return -Double.compare(getPrimaryMetricValue(),other.getPrimaryMetricValue());
}

public int compareTo ( AssociationRule other ) { return - Double . compare ( getPrimaryMetricValue ( ) , other . getPrimaryMetricValue ( ) ) ; }
compare this rule to the supplied rule .
