List of usage examples for java.util AbstractSet remove
boolean remove(Object o);
From source file:Main.java
private static boolean removeAllFromSet(AbstractSet<?> collection, Collection<?> toRemove) { boolean result = false; for (Object o : toRemove) result |= collection.remove(o); return result; }