Example #1
0
 /**
  * Copies every mapping to this {@code Hashtable} from the specified map.
  *
  * @param map the map to copy mappings from.
  */
 public synchronized void putAll(Map<? extends K, ? extends V> map) {
   ensureCapacity(map.size());
   for (Entry<? extends K, ? extends V> e : map.entrySet()) {
     put(e.getKey(), e.getValue());
   }
 }