return type of Collection.removeIf

Akhil Arora akhil.arora at oracle.com
Sat Apr 20 21:06:21 PDT 2013


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.


More information about the lambda-dev mailing list