commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Neidhart (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (COLLECTIONS-460) Change IteratorChain to use a Queue and remove iterators after use
Date Tue, 14 May 2013 18:37:16 GMT

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

Thomas Neidhart resolved COLLECTIONS-460.
-----------------------------------------

    Resolution: Fixed

Changed in r1482514.
                
> 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

Mime
View raw message