我需要一个行为类似于 C++ multimap 的集合,但我还需要能够通过一系列键获取元素。
你可以看看谷歌收藏 http://code.google.com/p/google-collections/。它有多种实现MultiMap.
MultiMap