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)
| 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 |
nothing calls this directly
no test coverage detected