Code example for Set

Methods: containsAll

0
    return map.remove(o) == null; 
  } 
 
  @Override 
  public boolean containsAll(Collection<?> c) { 
    return map.keySet().containsAll(c); 
  } 
 
  @Override 
  public boolean addAll(Collection<? extends E> c) { 
    boolean changed = false; 
    for (E e: c) { 
      if (map.put(e, OBJ) == null) { 
        changed = true; 
      } 
    } 
    return changed; 
  } 
 
  @Override