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

Method remove

corpus/java/training/guava/collect/Maps.java:847–856  ·  view source on GitHub ↗
(@Nullable Object key)

Source from the content-addressed store, hash-verified

845 }
846
847 @Override
848 public V remove(@Nullable Object key) {
849 if (backingSet().remove(key)) {
850 @SuppressWarnings("unchecked") // unsafe, but Javadoc warns about it
851 K k = (K) key;
852 return function.apply(k);
853 } else {
854 return null;
855 }
856 }
857
858 @Override
859 public void clear() {

Callers

nothing calls this directly

Calls 3

backingSetMethod · 0.95
removeMethod · 0.65
applyMethod · 0.65

Tested by

no test coverage detected