(coll) make Collections.singletonIterator() public

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P4
    • tbd
    • Affects Version/s: 7
    • Component/s: core-libs

      A DESCRIPTION OF THE REQUEST :
      The java.util.Collections utility class has a method to return a singleton Iterator. This method is package private.

      JUSTIFICATION :
      Making this method public would allow it to be used in application code.
      Currently one needs to use singletonList(element).iterator() or write their own Iterator.

            Assignee:
            Stuart Marks
            Reporter:
            Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: