I'm all for removing it. The last time I looked through that code I came to
the same conclusion your questions infer. If I recall correctly, some of the
actual Map interface methods won't even work correctly if used. Also, I
believe the actual keys were just Strings, so concatenated Strings could
even be used.

-Nathan

> -----Original Message-----
> From: Tim Ellison [mailto:[EMAIL PROTECTED]
> Sent: Friday, July 21, 2006 11:52 AM
> To: harmony-dev
> Subject: [classlib] TwoKeyHashMap
> 
> Does anyone know why we have a TwoKeyHashMap [1] utility class?
> 
> I've only looked at it briefly, but I'm left wondering why the author
> chose to write all that rather than use a regular HashMap with an object
> that combines the 'TwoKey's?
> 
> There may be a subtlety I missed.  Anyone know?
> 
> [1]
> http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/mod
> ules/luni/src/main/java/org/apache/harmony/luni/util/TwoKeyHashMap.java?vi
> ew=co
> 
> Regards,
> Tim
> 
> --
> 
> Tim Ellison ([EMAIL PROTECTED])
> IBM Java technology centre, UK.
> 
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to