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

Method remove

guava/src/com/google/common/collect/Maps.java:4096–4109  ·  view source on GitHub ↗
(@Nullable Object o)

Source from the content-addressed store, hash-verified

4094 }
4095
4096 @Override
4097 public boolean remove(@Nullable Object o) {
4098 try {
4099 return super.remove(o);
4100 } catch (UnsupportedOperationException e) {
4101 for (Entry<K, V> entry : map().entrySet()) {
4102 if (Objects.equals(o, entry.getValue())) {
4103 map().remove(entry.getKey());
4104 return true;
4105 }
4106 }
4107 return false;
4108 }
4109 }
4110
4111 @Override
4112 public boolean removeAll(Collection<?> c) {

Callers

nothing calls this directly

Calls 6

mapMethod · 0.95
removeMethod · 0.65
entrySetMethod · 0.65
equalsMethod · 0.65
getValueMethod · 0.65
getKeyMethod · 0.65

Tested by

no test coverage detected