public boolean equals(Object obj){
  if (this == obj) {
    return true;
  }
  if (!(obj instanceof URIName)) {
    return false;
  }
  URIName other=(URIName)obj;
  return uri.equals(other.getURI());
}

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