/** * Inserts all of the elements of map into this Hashtable in a manner * suitable for use by constructors and pseudo-constructors (i.e., clone, * readObject). */ private void constructorPutAll(Map<? extends K, ? extends V> map) { if (table == EMPTY_TABLE) { doubleCapacity(); // Don't do unchecked puts to a shared table. } for (Entry<? extends K, ? extends V> e : map.entrySet()) { constructorPut(e.getKey(), e.getValue()); } }
if (size++ > threshold) { tab = doubleCapacity(); index = hash & (tab.length - 1); first = tab[index];
doubleCapacity(); return;
/** * Inserts all of the elements of map into this Hashtable in a manner * suitable for use by constructors and pseudo-constructors (i.e., clone, * readObject). */ private void constructorPutAll(Map<? extends K, ? extends V> map) { if (table == EMPTY_TABLE) { doubleCapacity(); // Don't do unchecked puts to a shared table. } for (Entry<? extends K, ? extends V> e : map.entrySet()) { constructorPut(e.getKey(), e.getValue()); } }
/** * Inserts all of the elements of map into this Hashtable in a manner * suitable for use by constructors and pseudo-constructors (i.e., clone, * readObject). */ private void constructorPutAll(Map<? extends K, ? extends V> map) { if (table == EMPTY_TABLE) { doubleCapacity(); // Don't do unchecked puts to a shared table. } for (Entry<? extends K, ? extends V> e : map.entrySet()) { constructorPut(e.getKey(), e.getValue()); } }
/** * Inserts all of the elements of map into this Hashtable in a manner * suitable for use by constructors and pseudo-constructors (i.e., clone, * readObject). */ private void constructorPutAll(Map<? extends K, ? extends V> map) { if (table == EMPTY_TABLE) { doubleCapacity(); // Don't do unchecked puts to a shared table. } for (Entry<? extends K, ? extends V> e : map.entrySet()) { constructorPut(e.getKey(), e.getValue()); } }
/** * Inserts all of the elements of map into this Hashtable in a manner * suitable for use by constructors and pseudo-constructors (i.e., clone, * readObject). */ private void constructorPutAll(Map<? extends K, ? extends V> map) { if (table == EMPTY_TABLE) { doubleCapacity(); // Don't do unchecked puts to a shared table. } for (Entry<? extends K, ? extends V> e : map.entrySet()) { constructorPut(e.getKey(), e.getValue()); } }
/** * Inserts all of the elements of map into this Hashtable in a manner * suitable for use by constructors and pseudo-constructors (i.e., clone, * readObject). */ private void constructorPutAll(Map<? extends K, ? extends V> map) { if (table == EMPTY_TABLE) { doubleCapacity(); // Don't do unchecked puts to a shared table. } for (Entry<? extends K, ? extends V> e : map.entrySet()) { constructorPut(e.getKey(), e.getValue()); } }
/** * Inserts all of the elements of map into this Hashtable in a manner * suitable for use by constructors and pseudo-constructors (i.e., clone, * readObject). */ private void constructorPutAll(Map<? extends K, ? extends V> map) { if (table == EMPTY_TABLE) { doubleCapacity(); // Don't do unchecked puts to a shared table. } for (Entry<? extends K, ? extends V> e : map.entrySet()) { constructorPut(e.getKey(), e.getValue()); } }
/** * Inserts all of the elements of map into this Hashtable in a manner * suitable for use by constructors and pseudo-constructors (i.e., clone, * readObject). */ private void constructorPutAll(Map<? extends K, ? extends V> map) { if (table == EMPTY_TABLE) { doubleCapacity(); // Don't do unchecked puts to a shared table. } for (Entry<? extends K, ? extends V> e : map.entrySet()) { constructorPut(e.getKey(), e.getValue()); } }
if (size++ > threshold) { tab = doubleCapacity(); index = hash & (tab.length - 1); first = tab[index];
if (size++ > threshold) { tab = doubleCapacity(); index = hash & (tab.length - 1); first = tab[index];
if (size++ > threshold) { tab = doubleCapacity(); index = hash & (tab.length - 1); first = tab[index];
doubleCapacity(); return;
doubleCapacity(); return;
doubleCapacity(); return;
doubleCapacity(); return;
doubleCapacity(); return;
doubleCapacity(); return;