(Map<? extends K, ? extends V> map)
| 561 | /// if a key or value is `null` and this map does not |
| 562 | /// support `null` keys or values. |
| 563 | public void putAll(Map<? extends K, ? extends V> map) { |
| 564 | Iterator it = map.entrySet().iterator(); |
| 565 | while (it.hasNext()) { |
| 566 | Map.Entry<? extends K, ? extends V> entry = (Map.Entry<? extends K, ? extends V>)it.next(); |
| 567 | put(entry.getKey(), entry.getValue()); |
| 568 | } |
| 569 | } |
| 570 | |
| 571 | /// Removes a mapping with the specified key from this Map. |
| 572 | /// |