Code example for Set

Methods: removeAll

0
        map.remove(obj);
        return (map.size() != size);
    } 
 
    public boolean removeAll(Collection<?> coll) {
        return map.keySet().removeAll(coll);
    } 
 
    public boolean retainAll(Collection<?> coll) {
        return map.keySet().retainAll(coll);
    } 
 
    public void clear() { 
        map.clear();
    } 
 
    public Object[] toArray() {
        return map.keySet().toArray();
    } 
 
    public <T> T[] toArray(T[] array) {