Collection.removeIf is currently specified to return a boolean which is true if any elements were removed. IMHO it would be more useful to have it return an int indicating the number of elements that were removed.