Commons Collections
  1. Commons Collections
  2. COLLECTIONS-471

Add a BoundedIterator which returns at most limit elements

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1
    • Component/s: None
    • Labels:
      None

      Description

      It would be nice to have a decorator which bounds the number of elements returned by the decorated iterator.

      1. BoundedIteratorTest.java
        12 kB
        Radford Tam
      2. BoundedIterator.java
        6 kB
        Radford Tam

        Activity

        Thomas Neidhart created issue -
        Thomas Neidhart made changes -
        Field Original Value New Value
        Fix Version/s 4.x [ 12313073 ]
        Fix Version/s 4.0 [ 12314511 ]
        Radford Tam made changes -
        Attachment BoundedIterator.java [ 12615117 ]
        Attachment BoundedIteratorTest.java [ 12615118 ]
        Radford Tam made changes -
        Attachment BoundedIterator.java [ 12615238 ]
        Radford Tam made changes -
        Attachment BoundedIterator.java [ 12615117 ]
        Radford Tam made changes -
        Attachment BoundedIteratorTest.java [ 12615118 ]
        Radford Tam made changes -
        Attachment BoundedIteratorTest.java [ 12615239 ]
        Thomas Neidhart made changes -
        Fix Version/s 4.0.1 [ 12325652 ]
        Fix Version/s 4.x [ 12313073 ]
        Thomas Neidhart made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Thomas Neidhart made changes -
        Fix Version/s 4.1 [ 12326353 ]
        Fix Version/s 4.0.1 [ 12325652 ]

          People

          • Assignee:
            Unassigned
            Reporter:
            Thomas Neidhart
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development