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

Method remove

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

Source from the content-addressed store, hash-verified

2879 }
2880
2881 @Override
2882 public boolean remove(@Nullable Object o) {
2883 Iterator<Entry<K, V>> entryItr = unfiltered.entrySet().iterator();
2884 while (entryItr.hasNext()) {
2885 Entry<K, V> entry = entryItr.next();
2886 if (predicate.apply(entry) && Objects.equals(entry.getValue(), o)) {
2887 entryItr.remove();
2888 return true;
2889 }
2890 }
2891 return false;
2892 }
2893
2894 @Override
2895 public boolean removeAll(Collection<?> collection) {

Callers

nothing calls this directly

Calls 8

iteratorMethod · 0.65
entrySetMethod · 0.65
nextMethod · 0.65
applyMethod · 0.65
equalsMethod · 0.65
getValueMethod · 0.65
removeMethod · 0.65
hasNextMethod · 0.45

Tested by

no test coverage detected