Java Collection Remove removeAll(Collection source, Set remove)

Here you can find the source of removeAll(Collection source, Set remove)

Description

remove All

License

Artistic License

Declaration

public static void removeAll(Collection source, Set remove) 

Method Source Code


//package com.java2s;
//License from project: Artistic License 

import java.util.*;

public class Main {
    public static void removeAll(Collection source, Set remove) {
        Iterator i = remove.iterator();
        while (i.hasNext()) {
            source.remove(i.next());//from   ww w . j a va  2  s. co  m
        }
    }
}

Related

  1. remove(Collection collection, final int count)
  2. remove(Collection collection, T... items)
  3. remove(final Collection c, final Object elem)
  4. remove(final int index, final Collection collection)
  5. removeAll(Collection collection, Collection remove)
  6. removeAll(Collection c, Iterable elts)
  7. removeAll(Collection c, Object e)
  8. removeAll(Collection c, T... array)
  9. removeAll(Collection c, T... array)