Uploaded image for project: 'Commons Collections'
  1. Commons Collections
  2. COLLECTIONS-869

Add an unwinding Iterator that converts Iterator<Iterator<T>> into an Iterator<T>

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: In Progress
    • Minor
    • Resolution: Unresolved
    • 4.5.0-M2
    • None
    • Iterator
    • None

    Description

      There is a need for an iterator that is constructed from an Iterator<Iterator<T>> and unwinds the outer iterator to simply iterate over the inner Iterator<T>.

      Unlike the IteratorChain<T> the inner iterators should not be constructed until needed so that any overhead involved in constructing an enclosed Iterator<T> is amortized across the entire operation and not front loaded on the constructor or first call.

      Attachments

        Issue Links

          Activity

            People

              claude Claude Warren
              claude Claude Warren
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: