@Override public boolean addAll(Collection coll) { synchronized(this) {return super.addAll(coll);} } @Override
/** * Constructs a new set containing the elements in the specified * collection. * * @param c the collection whose elements are to be placed into this set. */ public CompactHashSet(Collection<E> c) { this(c.size()); addAll(c); }