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

Method removeAll

corpus/java/training/guava/collect/Maps.java:3821–3834  ·  view source on GitHub ↗
(Collection<?> c)

Source from the content-addressed store, hash-verified

3819 }
3820
3821 @Override
3822 public boolean removeAll(Collection<?> c) {
3823 try {
3824 return super.removeAll(checkNotNull(c));
3825 } catch (UnsupportedOperationException e) {
3826 Set<K> toRemove = Sets.newHashSet();
3827 for (Entry<K, V> entry : map().entrySet()) {
3828 if (c.contains(entry.getValue())) {
3829 toRemove.add(entry.getKey());
3830 }
3831 }
3832 return map().keySet().removeAll(toRemove);
3833 }
3834 }
3835
3836 @Override
3837 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