MCPcopy Create free account
hub / github.com/davidgiven/luje / putAll

Method putAll

lib/java/util/HashMap.java:615–620  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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();

Callers

nothing calls this directly

Calls 2

putAllImplMethod · 0.95
isEmptyMethod · 0.65

Tested by

no test coverage detected