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

Method remove

output/java_guava/1.4.19/Maps.java:3875–3888  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

3873 }
3874
3875 @Override
3876 public boolean remove(Object o) {
3877 try {
3878 return super.remove(o);
3879 } catch (UnsupportedOperationException e) {
3880 for (Entry<K, V> entry : map().entrySet()) {
3881 if (Objects.equal(o, entry.getValue())) {
3882 map().remove(entry.getKey());
3883 return true;
3884 }
3885 }
3886 return false;
3887 }
3888 }
3889
3890 @Override
3891 public boolean removeAll(Collection<?> c) {

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected