@Override public boolean equals(Object that){
  if (this == that) {
    return true;
  }
  if (that == null) {
    return false;
  }
  if (getClass() != that.getClass()) {
    return false;
  }
  Collator other=(Collator)that;
  return ((strength == other.strength) && (decmp == other.decmp));
}

@ Override public boolean equals ( Object that ) { if ( this == that ) { return true ; } if ( that == null ) { return false ; } if ( getClass ( ) != that . getClass ( ) ) { return false ; } Collator other = ( Collator ) that ; return ( ( strength == other . strength ) && ( decmp == other . decmp ) ) ; }
compares the equality of two collators .
