/PROPOSAL 1/ Additions to IteratorUtils

2003-11-24 Thread Lee Crawford
I'd like to propose the following simple additions to the o.a.c.c.IteratorUtils class. The following is a simple convenience method for counting the number of elements in an iteration, something that I find myself recreating somewhat frequently: public static int countElements (final Iterat

RE: [collections] Resetable iterators

2003-11-08 Thread Lee Crawford
A few things. On the one hand, there's nothing Iterator-specific about a reset() method which supports a Resetable interface. However, there may be many times where a single reference is appropriate for something that is both Iterator and Resetable. What about providing both: public interface

[collections] review of the collections/iterator package.

2003-11-06 Thread Lee Crawford
Greetings. In advance of submitting a collection of iterator-related classes, I thought I'd review what was already in the org.apache.commons.collections.iterators package to ensure my components would fit in. I wanted to share my observations and try and discuss some of the areas that I had an o