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

Method remove

corpus/java/training/guava/collect/HashBiMap.java:362–374  ·  view source on GitHub ↗
(@Nullable Object key)

Source from the content-addressed store, hash-verified

360 }
361
362 @CanIgnoreReturnValue
363 @Override
364 public V remove(@Nullable Object key) {
365 BiEntry<K, V> entry = seekByKey(key, smearedHash(key));
366 if (entry == null) {
367 return null;
368 } else {
369 delete(entry);
370 entry.prevInKeyInsertionOrder = null;
371 entry.nextInKeyInsertionOrder = null;
372 return entry.value;
373 }
374 }
375
376 @Override
377 public void clear() {

Callers

nothing calls this directly

Calls 3

seekByKeyMethod · 0.95
deleteMethod · 0.95
smearedHashMethod · 0.80

Tested by

no test coverage detected