commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Colebourne" <scolebou...@btopenworld.com>
Subject Re: [collections] TreeIterator / Nested iterators
Date Mon, 15 Mar 2004 23:32:52 GMT
How about ObjectGraphIterator?
Stephen


----- Original Message -----
From: "pwomack" <pwomack@papermule.co.uk>
> Stephen Colebourne wrote:
> > I have added TreeIterator to CVS to cover this sort of case. The class
is
> > capable of navigating an object graph of arbitrary depth for iteration.
> >
> > I recommend everyone reviews it, including the name before it is
confirmed
> > for 3.1.
>
> OK. Now I've looked.
>
> It's a remarkable, compact, elegant and powerful piece
> of code :-)
>
> I don't like the name - tree normally has connotations
> of a homogeous, recursive implementation; the ever popular
>
> class Node {
>      Node left, right;
>      .
>      .
> }
>
> type thing.
>
> However, the only alternative names I can think of are klunky
> to say the least - all manner of "PolyIterator" and "MultiTypeIterator"
> and that kind of crud.
>
> I do think that "tree" is misleading though.
>
>       BugBear


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message