[jdom-interest] Re: Why don't Comment, Element, Text, etc extend common jdom obje ct? [removing within an iterator controlled loop]

Dan Douglas DDouglas at bluepumpkin.com
Tue May 28 08:51:33 PDT 2002


bob mcwhirter writes on Mon, 27 May 2002 20:16:41 -0400 (EDT)

> Can anyone think of a way for either detach() or Iterator::remove() to be
> legal?

How about a variation of detach() that takes the iterator as an argument.
You either call Iterator::remove() or detach(Iterator it) when removing
elements while executing an iterator controlled loop.

Dan Douglas
ddouglas at bluepumpkin.com





More information about the jdom-interest mailing list