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

Method removeAllImpl

corpus/java/training/guava/collect/Sets.java:1583–1589  ·  view source on GitHub ↗

Remove each element in an iterable from a set.

(Set<?> set, Iterator<?> iterator)

Source from the content-addressed store, hash-verified

1581 * Remove each element in an iterable from a set.
1582 */
1583 static boolean removeAllImpl(Set<?> set, Iterator<?> iterator) {
1584 boolean changed = false;
1585 while (iterator.hasNext()) {
1586 changed |= set.remove(iterator.next());
1587 }
1588 return changed;
1589 }
1590
1591 static boolean removeAllImpl(Set<?> set, Collection<?> collection) {
1592 checkNotNull(collection); // for GWT

Callers 5

removeAllMethod · 0.95
standardRemoveAllMethod · 0.95
removeAllMethod · 0.95
removeAllMethod · 0.95
removeAllMethod · 0.45

Calls 8

removeAllMethod · 0.95
removeMethod · 0.65
nextMethod · 0.65
elementSetMethod · 0.65
sizeMethod · 0.65
iteratorMethod · 0.65
hasNextMethod · 0.45
checkNotNullMethod · 0.45

Tested by

no test coverage detected