When using the apache commonds bidimap, how do you handle synchronization. For example, if I create the map as shown below
BidiMap oneWay = new DualHashBidiMap();
BidiMap theOtherWay = oneWay.inverseBidiMap();
So if I am going to add/access/remove a key/value pair to one of the above variables, to I need to synchronize both (thread synchronization). Seems like I am not gaining anything over implementing this functionality with 2 maps if I need to do this.
Thanks for you time in looking at this problem.