MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / putAll

Method putAll

vm/JavaAPI/src/java/util/HashMap.java:582–587  ·  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

580 * if {@code map} is {@code null}.
581 */
582 @Override
583 public void putAll(Map<? extends K, ? extends V> map) {
584 if (!map.isEmpty()) {
585 putAllImpl(map);
586 }
587 }
588
589 private void putAllImpl(Map<? extends K, ? extends V> map) {
590 int capacity = elementCount + map.size();

Callers 1

totalMapMethod · 0.95

Calls 2

putAllImplMethod · 0.95
isEmptyMethod · 0.65

Tested by

no test coverage detected