I need a Map<String,Integer> to store a binding between a set o strings and ints, for example:
"one" <-> 1
"two" <-> 2
"three" <-> 3
and in particular I need to use both String values and int values as key to access this map. I mean: get("one") returns 1 and get(1) returns "one".
What's the best way to achieve this? is there some Map implementation that can help me?