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

Method removeAll

output/java_guava/1.4.19/Maps.java:3890–3903  ·  view source on GitHub ↗
(Collection<?> c)

Source from the content-addressed store, hash-verified

3888 }
3889
3890 @Override
3891 public boolean removeAll(Collection<?> c) {
3892 try {
3893 return super.removeAll(checkNotNull(c));
3894 } catch (UnsupportedOperationException e) {
3895 Set<K> toRemove = Sets.newHashSet();
3896 for (Entry<K, V> entry : map().entrySet()) {
3897 if (c.contains(entry.getValue())) {
3898 toRemove.add(entry.getKey());
3899 }
3900 }
3901 return map().keySet().removeAll(toRemove);
3902 }
3903 }
3904
3905 @Override
3906 public boolean retainAll(Collection<?> c) {

Callers

nothing calls this directly

Calls 10

newHashSetMethod · 0.95
mapMethod · 0.95
removeAllMethod · 0.65
entrySetMethod · 0.65
containsMethod · 0.65
getValueMethod · 0.65
addMethod · 0.65
getKeyMethod · 0.65
keySetMethod · 0.65
checkNotNullMethod · 0.45

Tested by

no test coverage detected