[jdom-interest] hashCode() and equals()

Jason Hunter jhunter at collab.net
Sat Jun 2 16:28:47 PDT 2001

bob mcwhirter wrote:
> My use-case is...
>         What namespace-uri is mapped to a given prefix,
>         within the context of a given element.
>         f(element+prefix) == URI
> If I can answer that question, I'm happy.

You can use this method on Element:

public Namespace getNamespace(String prefix)

So you're happy, and I'm happy.  :-)


More information about the jdom-interest mailing list