commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Leland <rlel...@apache.org>
Subject Re: [collections] HashMap with multiple values for one key
Date Thu, 29 May 2003 19:46:04 GMT
Denis Avdic wrote:

> Hello,
>
> I know this is probably a really stupid question but i am looking for 
> a HashMap (or similar)implementation that will store multiple objects 
> under the same key.  I wrote a superficial implementation myself  
> based on the HashMap, but I am interested to know if there is 
> something out there already implementing this functionality.  I really 
> couldn't decypher if multimap would do this. 

Why not just store an object which itself is a container.

Either a class with public member functions, it could be a list, or even 
another Map ?

>
>
> Thanks,
>
> Denis



Mime
View raw message