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

Method removeAll

corpus/java/training/guava/collect/Iterators.java:222–225  ·  view source on GitHub ↗

Traverses an iterator and removes every element that belongs to the provided collection. The iterator will be left exhausted: its hasNext() method will return false. @param removeFrom the iterator to (potentially) remove elements from @param elementsToRemove the elements to remove @

(Iterator<?> removeFrom, Collection<?> elementsToRemove)

Source from the content-addressed store, hash-verified

220 * @return {@code true} if any element was removed from {@code iterator}
221 */
222 @CanIgnoreReturnValue
223 public static boolean removeAll(Iterator<?> removeFrom, Collection<?> elementsToRemove) {
224 return removeIf(removeFrom, in(elementsToRemove));
225 }
226
227 /**
228 * Removes every element that satisfies the provided predicate from the

Callers 5

removeAllMethod · 0.95
removeAllMethod · 0.95
removeAllMethod · 0.95
removeAllImplMethod · 0.95
standardRemoveAllMethod · 0.95

Calls 2

removeIfMethod · 0.95
inMethod · 0.45

Tested by

no test coverage detected