阅读背景:

Java中的双向多值映射

来源:互联网 

I am looking for a way to store key-value pairs. I need the lookup to be bidirectional, but at the same time I need to store multiple values for the same key. In other words, something like a BidiMap, but for every key there can be multiple values. For example, it needs to be able to hold pairs like: "s1"->1, "s2"->1, "s3"->2, and I need to be able to get the value mapped to each key, and for each value, get all the keys associated with it.I am looking for a way to store key-value pairs




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: