(Map<? extends K, ? extends V> map)
| 773 | /// |
| 774 | /// - `map`: the map to copy mappings from. |
| 775 | public synchronized void putAll(Map<? extends K, ? extends V> map) { |
| 776 | Iterator it = map.entrySet().iterator(); |
| 777 | while(it.hasNext()) { |
| 778 | Map.Entry<? extends K, ? extends V> entry = (Map.Entry<? extends K, ? extends V>)it.next(); |
| 779 | put(entry.getKey(), entry.getValue()); |
| 780 | } |
| 781 | } |
| 782 | |
| 783 | /// Increases the capacity of this `Hashtable`. This method is called |
| 784 | /// when the size of this `Hashtable` exceeds the load factor. |