United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4904074 (coll) Provide basic Map.Entry class
JDK-4904074 : (coll) Provide basic Map.Entry class

Details
Type:
Bug
Submit Date:
2003-08-10
Status:
Resolved
Updated Date:
2012-10-08
Project Name:
JDK
Resolved Date:
2005-09-04
Component:
core-libs
OS:
generic
Sub-Component:
java.util:collections
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports

Sub Tasks

Description
Writing a Map implementation is a bit more difficult than some other collection interfaces. The task would be made easier if some assistance were provided in writing the Map.Entry implementation that all Map implementations must provide.

It would make sense for java.util to provide a "basic map entry" that was simply a container for a key and a value that knew how to compute the proper equals, hashCode and toString functions.

In fact, such a class already exists privately inside AbstractMap with the notation "This should be made public as soon as possible."

                                    

Comments
EVALUATION

A sensible enhancement.

###@###.### 2003-08-10

Will be provided as part of JSR166 maintenance.
###@###.### 2005-03-09 03:13:35 GMT
                                     
2003-08-10
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mustang


                                     
2004-09-08



Hardware and Software, Engineered to Work Together