United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4983155 : Alpha Feedback: add generic Pair class

Details
Type:
Enhancement
Submit Date:
2004-01-24
Status:
Closed
Updated Date:
2004-02-05
Project Name:
JDK
Resolved Date:
2004-02-05
Component:
core-libs
OS:
solaris_2.5
Sub-Component:
java.util
CPU:
sparc
Priority:
P4
Resolution:
Won't Fix
Affected Versions:
5.0
Fixed Versions:

Related Reports
Duplicate:
Relates:

Sub Tasks

Description
Submitted by  Ola Gustafsson <###@###.###>

Something which would be great in Tiger, is a generic Pair class. Nothing 
spectacular, just a way to group two values of various classes:

Pair<String,String> values = new Pair<String,String>();

I think this would be greatly appreciated by the community, and it wouldn't 
involve much effort in development.

                                    

Comments
EVALUATION

A generic pair class has certain advantages, but can do more harm than good.  If you write your own, more specialized pair classes, you can give the fields better names.

###@###.### 2004-02-05
                                     
2004-02-05



Hardware and Software, Engineered to Work Together