[jdom-interest] Problem with 'setChildren' on JDOM B8
jhunter at acm.org
Wed Dec 11 22:55:36 PST 2002
> Forgive my ignorance. How would I clone a List ? There's no 'clone()' method
> on that interface and I wouldn't want to make assumptions about the
> underlying implementation would I ?
List newList = new ArrayList(old.getContent());
> Also, I'd be concerned about making a deep clone that recursively clones all
> the elements and sub-elements within the List from a point of view of run
> time cost. There ought to be a way of just returning a static list of
> references to the content.
Well, the above doesn't recurse.
More information about the jdom-interest