It's not all that uncommon to need to create a Map that works in two directions (from key to value, and from value to key). Implementations of such collections already exist in various third-party libraries. One such is guava from Google. 12.1. Download and connect the guava library, version 19.0.
You must be signed in to leave a comment
7 July 2021, 19:04
This is the link for the Maven repository for Guava https://mvnrepository.com/artifact/com.google.guava/guava/30.1.1-jre