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)
| 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 |
no test coverage detected