Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7001877

(coll) make Collections.singletonIterator() public

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • tbd
    • 7
    • 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.

            smarks Stuart Marks
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: