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

(coll) Introduction of OrderedMap interface

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P5 P5
    • None
    • 1.4.2
    • core-libs

      Name: jl125535 Date: 05/17/2004


      A DESCRIPTION OF THE REQUEST :
      An interface called OrderedMap should be created for maps that provide a consistent iteration order (i.e. LinkedHashMap and SortedMap). This way, these two types of maps can be used iterchangeably for applications that only require a consistent iteration ordering.

      JUSTIFICATION :
      This causes no added inconvenience, but allows LinkedHashMap's and SortedMap's to be used interchangeably where a map that maintains order is required. Since the OrderedMap interface will extend the Map interface, the developer does not have to worry about its existance, if they so chose.


      CUSTOMER SUBMITTED WORKAROUND :
      Tie your implementation to either a SortedMap or LinkedHashMap.
      (Incident Review ID: 265490)
      ======================================================================

            martin Martin Buchholz
            jleesunw Jon Lee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: