From: "Otis Gospodnetic" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 19, 2001 5:29 PM
Subject: Re: one-to-many Container


> Couldn't you just store values for a single key in a
> list (ArrayList, LinkedList, Vector)?
> Extend HashMap and write your own put(Object,Object)
> method that knows how to add to the existing list for
> existing key, or create a new list for a new key being
> put in the HashMap.

This sounds like a good possible addition to the Jakarta collections project
;-)

You might also want to change the implementation of values() so that you
could iterate through all logical values in the Map as one flat collection.

James


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Reply via email to