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

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