MCPcopy Index your code
hub / github.com/antlr/codebuff / removeAll

Method removeAll

output/java_guava/1.4.17/Maps.java:3886–3899  ·  view source on GitHub ↗
(Collection<?> c)

Source from the content-addressed store, hash-verified

3884 }
3885
3886 @Override
3887 public boolean removeAll(Collection<?> c) {
3888 try {
3889 return super.removeAll(checkNotNull(c));
3890 } catch (UnsupportedOperationException e) {
3891 Set<K> toRemove = Sets.newHashSet();
3892 for (Entry<K, V> entry : map().entrySet()) {
3893 if (c.contains(entry.getValue())) {
3894 toRemove.add(entry.getKey());
3895 }
3896 }
3897 return map().keySet().removeAll(toRemove);
3898 }
3899 }
3900
3901 @Override
3902 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