MCPcopy
hub / github.com/google/guava / remove

Method remove

guava/src/com/google/common/collect/Maps.java:908–917  ·  view source on GitHub ↗
(@Nullable Object key)

Source from the content-addressed store, hash-verified

906 }
907
908 @Override
909 public @Nullable V remove(@Nullable Object key) {
910 if (backingSet().remove(key)) {
911 @SuppressWarnings("unchecked") // unsafe, but Javadoc warns about it
912 K k = (K) key;
913 return function.apply(k);
914 } else {
915 return null;
916 }
917 }
918
919 @Override
920 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