Copies all the mappings in the specified map to this map. These mappings will replace all mappings that this map had for any of the keys currently in the given map. @param map the map to copy mappings from. @throws NullPointerException if map is null.
(Map<? extends K, ? extends V> map)
| 613 | * if {@code map} is {@code null}. |
| 614 | */ |
| 615 | @Override |
| 616 | public void putAll(Map<? extends K, ? extends V> map) { |
| 617 | if (!map.isEmpty()) { |
| 618 | putAllImpl(map); |
| 619 | } |
| 620 | } |
| 621 | |
| 622 | private void putAllImpl(Map<? extends K, ? extends V> map) { |
| 623 | int capacity = elementCount + map.size(); |
nothing calls this directly
no test coverage detected