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

Method removeAll

output/java_guava/1.4.17/Iterables.java:145–150  ·  view source on GitHub ↗

Removes, from an iterable, every element that belongs to the provided collection. This method calls Collection#removeAll if iterable is a collection, and Iterators#removeAll otherwise. @param removeFrom the iterable to (potentially) remove elements from @param elementsTo

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

Source from the content-addressed store, hash-verified

143 */
144
145 @CanIgnoreReturnValue
146 public static boolean removeAll(Iterable<?> removeFrom, Collection<?> elementsToRemove) {
147 return (removeFrom instanceof Collection)
148 ? ((Collection<?>) removeFrom).removeAll(checkNotNull(elementsToRemove))
149 : Iterators.removeAll(removeFrom.iterator(), elementsToRemove);
150 }
151
152 /**
153 * Removes, from an iterable, every element that does not belong to the

Callers

nothing calls this directly

Calls 4

removeAllMethod · 0.95
removeAllMethod · 0.65
iteratorMethod · 0.65
checkNotNullMethod · 0.45

Tested by

no test coverage detected