-
Enhancement
-
Resolution: Won't Fix
-
P5
-
None
-
1.4.2
-
x86
-
windows_xp
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)
======================================================================
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)
======================================================================