commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Neidhart (JIRA)" <>
Subject [jira] [Created] (COLLECTIONS-460) Add IteratorQueue
Date Mon, 06 May 2013 09:10:15 GMT
Thomas Neidhart created COLLECTIONS-460:

             Summary: Add IteratorQueue
                 Key: COLLECTIONS-460
             Project: Commons Collections
          Issue Type: New Feature
          Components: Iterator
            Reporter: Thomas Neidhart
             Fix For: 4.0

An IteratorQueue is equivalent to an IteratorChain with the difference that the iterators
to use is put into a queue instead of an list, and they are removed from the queue if an iterator
is exhausted.

The IteratorChain keeps the iterators in the list even if they are exhausted, thus they can
not be gc'ed until the whole chain is done. The interface of IteratorChain also contains a
getIterators method, which returns the list of iterators used by this chain. So instead of
changing the IteratorChain, I propose to add a separate class IteratorQueue with the described

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message