public boolean equals(Object obj){
  if (obj instanceof NamespaceSpecification) {
    NamespaceSpecification other=(NamespaceSpecification)obj;
    return ns.equals(other.ns) && wildcard.equals(other.wildcard);
  }
  return false;
}

public boolean equals ( Object obj ) { if ( obj instanceof NamespaceSpecification ) { NamespaceSpecification other = ( NamespaceSpecification ) obj ; return ns . equals ( other . ns ) && wildcard . equals ( other . wildcard ) ; } return false ; }
checks for equality with another namespace specification .
