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

Method updateInverseMap

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

Source from the content-addressed store, hash-verified

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

Callers 2

putInBothMapsMethod · 0.95
setValueMethod · 0.45

Calls 2

removeFromInverseMapMethod · 0.95
putMethod · 0.65

Tested by

no test coverage detected