public void putAll(ArrayMemoryMap map) {
        int mapSize = map.size();
        if (mapSize == 0) {
            return;
        }
        int newSize = (int) ((size + mapSize) / loadFactor + 1);
        ensureCapacity(calculateNewCapacity(newSize));
        // Have to cast here because of compiler inference problems.
        for (Iterator it = map.entrySet().iterator(); it.hasNext();) {
            ArrayMapEntryMemory entry = (ArrayMapEntryMemory) it.next();
            put(entry.getKey(), entry.getValue());
        }
    }
Puts all the values from the specified map into this map.

@param map the map to add
@throws NullPointerException if the map is null
jphp-runtime/src/php/runtime/memory/support/ArrayMemoryMap.java