[jdom-interest] Traversal

Robert DiFalco rdifalco at tripwire.com
Tue Aug 13 16:58:11 PDT 2002

Okay, I know this has been hashed out repeatedly but I don't quite
understand how the List interface makes using ArrayList more difficult or
require factories?!?

It also seems like if there where a single interface (or even better an
interface hierarchy using the Composite pattern) one could do typed
traversals using the Visitor pattern with out the need for cased instanceof

I don't see how this would adversely impact the use of concrete classes.
After all, I say "new ArrayList()" all the time.

Am I missing something?


More information about the jdom-interest mailing list