Guava biMap for bi directional map, but do we have any thread safe bi directional map ?
Asked
Active
Viewed 223 times
1 Answers
1
There is Maps.synchronizedBiMap(BiMap)
in Guava which provides some conditional level of thread-safety. The JavaDoc warns that you will have to manually synchronize on the map when using any of the views.
You could also use an ImmutableBiMap
which should be thread-safe.

Donald Raab
- 6,458
- 2
- 36
- 44