I'll end up extending MultiHashMap so a get gets me the top of the stack (or bucket, whatever you want to call it) and a getCol gets me the entire contents of the key...
Rob Leland wrote:
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
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
