MCPcopy Create free account
hub / github.com/antlr/codebuff / updateInverseMap

Method updateInverseMap

output/java_guava/1.4.13/AbstractBiMap.java:148–153  ·  view source on GitHub ↗
(K key, boolean containedKey, V oldValue, V newValue)

Source from the content-addressed store, hash-verified

146 }
147
148 private void updateInverseMap(K key, boolean containedKey, V oldValue, V newValue) {
149 if (containedKey) {
150 removeFromInverseMap(oldValue);
151 }
152 inverse.delegate.put(newValue, key);
153 }
154
155 @CanIgnoreReturnValue
156 @Override

Callers 2

putInBothMapsMethod · 0.95
setValueMethod · 0.45

Calls 2

removeFromInverseMapMethod · 0.95
putMethod · 0.65

Tested by

no test coverage detected