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

Method removeEntryImpl

output/java_guava/1.4.19/Maps.java:3627–3632  ·  view source on GitHub ↗

Implements Collection.remove safely for forwarding collections of map entries. If o is an instance of Map.Entry, it is wrapped using #unmodifiableEntry to protect against a possible nefarious equals method. Note that c is backing (delegate) collection, rat

(Collection<Entry<K, V>> c, Object o)

Source from the content-addressed store, hash-verified

3625
3626
3627 static <K, V> boolean removeEntryImpl(Collection<Entry<K, V>> c, Object o) {
3628 if (!(o instanceof Entry)) {
3629 return false;
3630 }
3631 return c.remove(unmodifiableEntry((Entry<?, ?>) o));
3632 }
3633
3634 /**
3635 * An implementation of {@link Map#equals}.

Callers 3

removeMethod · 0.95
removeMethod · 0.95
removeMethod · 0.95

Calls 2

unmodifiableEntryMethod · 0.95
removeMethod · 0.65

Tested by

no test coverage detected