Copies every mapping in the specified map to this map. @param map the map to copy mappings from. @throws UnsupportedOperationException if adding to this map is not supported. @throws ClassCastException if the class of a key or value is inappropriate for this
(Map<? extends K, ? extends V> map)
| 297 | * support {@code null} keys or values. |
| 298 | */ |
| 299 | public void putAll(Map<? extends K, ? extends V> map) { |
| 300 | for (Map.Entry<? extends K, ? extends V> entry : map.entrySet()) { |
| 301 | put(entry.getKey(), entry.getValue()); |
| 302 | } |
| 303 | } |
| 304 | |
| 305 | /** |
| 306 | * Removes a mapping with the specified key from this Map. |