/** * copies the key/value mappings in <tt>map</tt> into this map. * * @param map a <code>Map</code> value */ public final void putAll(Map map) { ensureCapacity(map.size()); // could optimize this for cases when map instanceof THashMap for (Iterator i = map.entrySet().iterator(); i.hasNext();) { Map.Entry e = (Map.Entry)i.next(); put(e.getKey(),e.getValue()); } }