• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Hash-map with allow duplicate keys ?

 
Ricardo Polero
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi:
In order to implemente a chach I looking for a HashTable-like structure with allow duplicate keys. I planned to overwrite some method , but first I want to know other opinions, links, etc for open source
Thanks in advance
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The normal Collections framework will do - what about a HashMap mapping to an ArrayList (or LinkedList) of objects? That would give the 1:n mapping you appear to need.
- Peter
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic