public boolean equals(Object obj){
  if (this == obj)   return true;
  if (!(obj instanceof RFC822Name))   return false;
  RFC822Name other=(RFC822Name)obj;
  return name.equalsIgnoreCase(other.name);
}

public boolean equals ( Object obj ) { if ( this == obj ) return true ; if ( ! ( obj instanceof RFC822Name ) ) return false ; RFC822Name other = ( RFC822Name ) obj ; return name . equalsIgnoreCase ( other . name ) ; }
compares this name with another , for equality .
