MCPcopy Index your code
hub / github.com/davidgiven/luje / putAllImpl

Method putAllImpl

lib/java/util/HashMap.java:622–630  ·  view source on GitHub ↗
(Map<? extends K, ? extends V> map)

Source from the content-addressed store, hash-verified

620 }
621
622 private void putAllImpl(Map<? extends K, ? extends V> map) {
623 int capacity = elementCount + map.size();
624 if (capacity > threshold) {
625 rehash(capacity);
626 }
627 for (Map.Entry<? extends K, ? extends V> entry : map.entrySet()) {
628 putImpl(entry.getKey(), entry.getValue());
629 }
630 }
631
632 void rehash(int capacity) {
633 int length = calculateCapacity((capacity == 0 ? 1 : capacity << 1));

Callers 2

HashMapMethod · 0.95
putAllMethod · 0.95

Calls 6

rehashMethod · 0.95
putImplMethod · 0.95
sizeMethod · 0.65
entrySetMethod · 0.65
getKeyMethod · 0.65
getValueMethod · 0.65

Tested by

no test coverage detected