Advertisement
Guest User

Untitled

a guest
Nov 29th, 2015
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. public class CollectionsUtils {
  2. public static void remove(List<?> items, Filter<Object> filter) {
  3. Iterator<?> iterator = items.iterator();
  4. while (iterator.hasNext()) {
  5. if (filter.shouldRemove(iterator.next())) {
  6. iterator.remove();
  7. }
  8. }
  9. }
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement