commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Denis Avdic <de...@betterway.net>
Subject Re: [collections] HashMap with multiple values for one key
Date Thu, 29 May 2003 19:33:19 GMT
Hm,

so if i do  put(key, object1)
and then put(key, object2)

if i do get(key) i'll get a collection {object1,object2}?


Robert McIntosh wrote:

>That is exactly what the MultiMap and its default implementation of
>MultiHashMap is designed to do, store a Collection of items within a
>single key. 
>
>Robert
>
>  
>
>>>>denis@betterway.net 05/29/03 02:25PM >>>
>>>>        
>>>>
>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.
>
>Thanks,
>
>Denis
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org 
>For additional commands, e-mail: commons-user-help@jakarta.apache.org 
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>
>
>  
>



Mime
View raw message