Guide to Google's Guava BiMap | Baeldung
In this tutorial, we'll show how to use the Google Guava's BiMap interface and its multiple implementations.
A BiMap (or "bidirectional map") is a special kind of a map which maintains an inverse view of the map while ensuring that no duplicate values are present and a value can always be used safely to get the key back.
The basic implementation of BiMap is HashBiMap where internally it makes use of two Maps, one for the key to value mapping and the other for the value to key mapping.
Read full article from Guide to Google's Guava BiMap | Baeldung
No comments:
Post a Comment