List of usage examples for org.apache.commons.collections BidiMap removeValue
Object removeValue(Object value);
From source file:BidiMapExample.java
public static void main(String args[]) { BidiMap agentToCode = new DualHashBidiMap(); agentToCode.put("007", "Bond"); agentToCode.put("006", "Joe"); agentToCode = UnmodifiableBidiMap.decorate(agentToCode); agentToCode.put("002", "Fairbanks"); // throws Exception agentToCode.remove("007"); // throws Exception agentToCode.removeValue("Bond"); // throws Exception }