There is no such class in the Java API. The Apache Commons class you want is going to be one of the implementations of BidiMap.
As a mathematician, I would call this kind of structure a bijection.
More Related Contents:
- “Cannot create generic array of ..” – how to create an Array of Map?
- How does Java order items in a HashMap or a HashTable?
- Java HashMap performance optimization / alternative
- How can I iterate over a map of ?
- Iterate through a HashMap [duplicate]
- What are the reasons why Map.get(Object key) is not (fully) generic
- Difference between HashMap, LinkedHashMap and TreeMap
- Java Hashmap: How to get key from value?
- How to convert List to Map?
- Sorting HashMap by values [duplicate]
- Is a Java hashmap search really O(1)?
- What is the difference between the HashMap and Map objects in Java?
- Understanding the workings of equals and hashCode in a HashMap
- How to convert a Map to List in Java?
- Finding Key associated with max Value in a Java Map
- How to update a value, given a key in a hashmap?
- How can I combine two HashMap objects containing the same types?
- Using a byte array as Map key
- is the Java HashMap keySet() iteration order consistent?
- Is it safe to get values from a java.util.HashMap from multiple threads (no modification)?
- creating Hashmap from a JSON String
- Using an instance of an object as a key in hashmap, and then access it with exactly new object? [duplicate]
- Iterating through a LinkedHashMap in reverse order
- ConcurrentHashMap and Hashtable in Java [duplicate]
- Limiting the max size of a HashMap in Java
- How does one instantiate an array of maps in Java?
- Bi-directional Map in Java? [duplicate]
- Why does HashSet implementation in Sun Java use HashMap as its backing?
- How do I create some variable type alias in Java
- What is the Java equivalent of Objective-C’s NSDictionary?