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

add factory methods for singleton NavigableSet/Map

XMLWordPrintable

      A DESCRIPTION OF THE PROBLEM :
      Since the singletonMap always contains just one elements, it is trivially sorted. So it should return a SortedMap
      Similarly, the singleton should return a SortedSet instead of a Set.


            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: