Re: jdom 1.1
| Newsgroups | gmane.comp.java.jdom.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Rolf,
you can find the code at http://jira.activemath.org/browse/AMATH-1297 (jdom_difference_with_get.zip (1,37 Mb) )
So here I used the (not performant) get(i) and not the iterator. It's just to test the difference between jdom 1.0 and jdom 1.1
I thougt jdom uses a LinkedList, because I found the following in the code of jdom 1.0:
public List getChildren(){
if(content == null)
content = new ArrayList(5);
PartialList elements = new PartialList(content, this);
for(Iterator i = content.iterator(); i.hasNext();){
Object obj = i.next();
if(obj instanceof Element)
elements.addPartial(obj);
}
return elements;
}
and:
PartialList extends LinkedList
Thank you!
Katja
Dit bericht is onderworpen aan de voorwaarden beschikbaar op onze website
Ce message est soumis aux conditions disponibles sur notre site web
This message is subject to the terms and conditions available on our website
_______________________________________________
To control your jdom-interest membership:
http://www.jdom.org/mailman/options/jdom-interest/[email protected]