Java Collection Remove removeRightSet(Collection left, Collection right)

Here you can find the source of removeRightSet(Collection left, Collection right)

Description

remove Right Set

License

Open Source License

Declaration

public static Collection removeRightSet(Collection left, Collection right) 

Method Source Code


//package com.java2s;
import java.util.*;

public class Main {
    public static Collection removeRightSet(Collection left, Collection right) {
        Collection set = new ArrayList(left);
        set.removeAll(right);//w  ww .jav  a2 s.co m
        return set;
    }
}

Related

  1. removeElement(Collection coll)
  2. removeElement(final int index, final Collection coll)
  3. removeElementsOfList(Collection set, Collection elementsToRemove)
  4. removeIfNotPresent(Collection collection, Collection permitted)
  5. removeOutStrings(Collection values, String newString)
  6. removeSafe(Collection collection, V value)