1

Is there any standard structure Map<k1,k2>? This means I can get the "value" through the "key" and the "key" through the "value". In other words both values and key are a Set connected to each other.

ender.an27
  • 703
  • 1
  • 13
  • 35
  • 1
    Check [this](http://stackoverflow.com/questions/1383797/java-hashmap-how-to-get-key-from-value). There is also an answer which shows how you can do it with the Java standard library. – Jonas Czech May 07 '15 at 11:50

1 Answers1

8

The standard library doesn't have one, but for example Guava has the BiMap.

Kayaman
  • 72,141
  • 5
  • 83
  • 121