[ 
https://issues.apache.org/jira/browse/COLLECTIONS-396?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jeff Rodriguez updated COLLECTIONS-396:
---------------------------------------

    Description: 
I would like to submit my DynamicIterator class for inclusion in Commons 
Collections.

Description from JavaDoc:

Iterates over the elements of an inner iterator provided by nextIterator() Once 
the inner iterator's hasNext() method returns false, nextIterator() will be 
called to obtain another iterator, and so on until nextIterator() returns null.

The use case I had in mind for this class was the paged web service. A web 
service returns a list of results, which are paginated. Once a page's results 
are exhausted, {@link #nextIterator()} can go fetch the next page for iteration.

This class, and accompanying test class are my original works. I have released 
them into the public domain, feel free to use the appropriate ASF license.

  was:
I would like to submit my DynamicIterator class for inclusion in Commons 
Collections.

Description from JavaDoc:

Iterates over the elements of an inner iterator provided by {@link 
#nextIterator()} Once the inner iterator's {@link Iterator#hasNext()} method 
returns false, {@link #nextIterator()} will be called to obtain another 
iterator, and so on until {@link #nextIterator()} returns null.

The use case I had in mind for this class was the paged web service. A web 
service returns a list of results, which are paginated. Once a page's results 
are exhausted, {@link #nextIterator()} can go fetch the next page for iteration.

This class, and accompanying test class are my original works. I have released 
them into the public domain, feel free to use the appropriate ASF license.

    
> New DynamicIterator class.
> --------------------------
>
>                 Key: COLLECTIONS-396
>                 URL: https://issues.apache.org/jira/browse/COLLECTIONS-396
>             Project: Commons Collections
>          Issue Type: New Feature
>          Components: Iterator
>         Environment: Java 1.5 or greater
>            Reporter: Jeff Rodriguez
>            Priority: Minor
>              Labels: dynamic, iterator, new
>         Attachments: DynamicIterator.java, DynamicIteratorTest.java
>
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> I would like to submit my DynamicIterator class for inclusion in Commons 
> Collections.
> Description from JavaDoc:
> Iterates over the elements of an inner iterator provided by nextIterator() 
> Once the inner iterator's hasNext() method returns false, nextIterator() will 
> be called to obtain another iterator, and so on until nextIterator() returns 
> null.
> The use case I had in mind for this class was the paged web service. A web 
> service returns a list of results, which are paginated. Once a page's results 
> are exhausted, {@link #nextIterator()} can go fetch the next page for 
> iteration.
> This class, and accompanying test class are my original works. I have 
> released them into the public domain, feel free to use the appropriate ASF 
> license.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to