JDK-4904074 : (coll) Provide basic Map.Entry class
  • Type: Bug
  • Status: Resolved
  • Resolution: Fixed
  • Component: core-libs
  • Sub-Component: java.util:collections
  • Priority: P4
  • Affected Version: 6
  • OS: generic
  • CPU: generic
  • Submit Date: 2003-08-10
  • Updated Date: 2017-05-16
  • Resolved Date: 2005-09-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availabitlity Release.

To download the current JDK release, click here.
JDK 6
6 b51Resolved
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
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mustang
2004-09-08

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