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

Method remove

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

Source from the content-addressed store, hash-verified

4190 }
4191
4192 @Override
4193 public boolean remove(@Nullable Object o) {
4194 /*
4195 * `o instanceof Entry` is guaranteed by `contains`, but we check it here to satisfy our
4196 * nullness checker.
4197 */
4198 if (contains(o) && o instanceof Entry) {
4199 Entry<?, ?> entry = (Entry<?, ?>) o;
4200 return map().keySet().remove(entry.getKey());
4201 }
4202 return false;
4203 }
4204
4205 @Override
4206 public boolean removeAll(Collection<?> c) {

Callers

nothing calls this directly

Calls 5

containsMethod · 0.95
mapMethod · 0.95
removeMethod · 0.65
keySetMethod · 0.65
getKeyMethod · 0.65

Tested by

no test coverage detected