[jdom-interest] Attributes as HashMap?
Jason Hunter
jhunter at collab.net
Thu Oct 5 13:42:17 PDT 2000
> I have a general question:
> Is there particular reason why choose a LinkedList as attributes in
> Element, not use a HashMap directly, even an attribute is a name-value
> pair (as in the java.util.Map)?
As Alex said, a list is probably equivalent or better performance than a
map until you have many attributes, and a list gives the nice benefit
that attribute order is maintained (not required but human-friendly).
-jh-
More information about the jdom-interest
mailing list