Java Collection Remove removeArrayToCollection(T[] array, Collection collection)

Here you can find the source of removeArrayToCollection(T[] array, Collection collection)

Description

Removes

License

Open Source License

Declaration

public static <T> void removeArrayToCollection(T[] array,
        Collection<T> collection) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.Collection;

public class Main {
    /**/*from www  .  j  a v a 2 s  .  c om*/
     * Removes 
     */
    public static <T> void removeArrayToCollection(T[] array,
            Collection<T> collection) {
        for (int i = 0; i < array.length; i++) {
            if (array[i] != null) {
                collection.remove(array[i]);
            }
        }
    }
}

Related

  1. removeAllElements(Collection data, T value)
  2. removeAllFromCollection(Collection collection, Collection toRemove)
  3. removeAllFromSet(AbstractSet collection, Collection toRemove)
  4. removeAny(Collection collection)
  5. removeArrayMarkerFromCollectionToString(Collection col)
  6. removed(Collection old, Collection nu)
  7. removed(Collection a, Collection b)
  8. removeDuplicates(Collection collection)
  9. removeDuplicates(Collection original)