MCPcopy Index your code
hub / github.com/antlr/codebuff / setValue

Method setValue

output/java_guava/1.4.17/AbstractBiMap.java:350–363  ·  view source on GitHub ↗
(V value)

Source from the content-addressed store, hash-verified

348 }
349
350 @Override
351 public V setValue(V value) {
352 // Preconditions keep the map and inverse consistent.
353 checkState(contains(this), "entry no longer in map");
354 // similar to putInBothMaps, but set via entry
355 if (Objects.equal(value, getValue())) {
356 return value;
357 }
358 checkArgument(!containsValue(value), "value already present: %s", value);
359 V oldValue = finalEntry.setValue(value);
360 checkState(Objects.equal(value, get(getKey())), "entry no longer in map");
361 updateInverseMap(getKey(), true, oldValue, value);
362 return oldValue;
363 }
364 };
365 }
366

Callers

nothing calls this directly

Calls 9

containsMethod · 0.95
equalMethod · 0.95
getValueMethod · 0.95
getMethod · 0.95
getKeyMethod · 0.95
containsValueMethod · 0.65
checkStateMethod · 0.45
checkArgumentMethod · 0.45
updateInverseMapMethod · 0.45

Tested by

no test coverage detected