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

Expand LoopingListIterator

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 4.2
    • None
    • Iterator
    • None

    Description

      Please enhance LoopingListIterator to accept a starting offset and a number to indicate the number of loops.

      https://docs.oracle.com/javase/7/docs/api/java/util/List.html#listIterator(int)

      public LoopingListIterator(List<E> list, int offset, int loops);
      

      As I imagine it, if a list has 3 items (1,2,3) then LoopingListIterator(list, 1, 1) would iterate: (2,3,1)

      Attachments

        Activity

          People

            Unassigned Unassigned
            belugabehr David Mollitor
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: