public boolean equals(Object obj){
  if (obj == null)   return false;
  if (this == obj)   return true;
  if (getClass() != obj.getClass())   return false;
  ChoiceFormat other=(ChoiceFormat)obj;
  return (Arrays.equals(choiceLimits,other.choiceLimits) && Arrays.equals(choiceFormats,other.choiceFormats));
}

public boolean equals ( Object obj ) { if ( obj == null ) return false ; if ( this == obj ) return true ; if ( getClass ( ) != obj . getClass ( ) ) return false ; ChoiceFormat other = ( ChoiceFormat ) obj ; return ( Arrays . equals ( choiceLimits , other . choiceLimits ) && Arrays . equals ( choiceFormats , other . choiceFormats ) ) ; }
equality comparision between two
