[
https://issues.apache.org/jira/browse/COLLECTIONS-460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thomas Neidhart updated COLLECTIONS-460:
----------------------------------------
Summary: Change IteratorChain to use a Queue and remove iterators after use
(was: Add IteratorQueue)
> Change IteratorChain to use a Queue and remove iterators after use
> ------------------------------------------------------------------
>
> Key: COLLECTIONS-460
> URL: https://issues.apache.org/jira/browse/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 are put into a queue instead of an list, and that 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 behavior.
--
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: http://www.atlassian.com/software/jira