public int hashCode(XMLGrammarDescription desc){
  if (desc instanceof XMLSchemaDescription) {
    final XMLSchemaDescription sd=(XMLSchemaDescription)desc;
    final String targetNamespace=sd.getTargetNamespace();
    final String expandedSystemId=sd.getExpandedSystemId();
    int hash=(targetNamespace != null) ? targetNamespace.hashCode() : 0;
    hash^=(expandedSystemId != null) ? expandedSystemId.hashCode() : 0;
    return hash;
  }
  return desc.hashCode();
}

public int hashCode ( XMLGrammarDescription desc ) { if ( desc instanceof XMLSchemaDescription ) { final XMLSchemaDescription sd = ( XMLSchemaDescription ) desc ; final String targetNamespace = sd . getTargetNamespace ( ) ; final String expandedSystemId = sd . getExpandedSystemId ( ) ; int hash = ( targetNamespace != null ) ? targetNamespace . hashCode ( ) : 0 ; hash ^= ( expandedSystemId != null ) ? expandedSystemId . hashCode ( ) : 0 ; return hash ; } return desc . hashCode ( ) ; }
returns the hash code value for the given grammar description .
