commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From paul womack <>
Subject Re: [collections] IteratorChain(Iterator) should be meta!
Date Tue, 04 Jul 2006 09:45:43 GMT
Paul Libbrecht wrote:
> Hello,
> only after a looong quest I realized that new IteratorChain(Iterator) 
> will only iterate through the elements of the given iterator instead of 
> expecting that each element is an iterator itself through which one 
> iterates.
> Am I blurred to expect such ?
> I suppose that changing this behaviour would be a too strong API 
> change... so should one do an IteratorThroughIterators?? I can offer a 
> class... if wished.

I think what you want can be handled nicely by
the (remarkable) ObjectGraphIterator class.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message