public void putAll(int index, IList<? extends E> list) {
        checkIndexAdd(index);
    	checkNonNull(list);

        int len = size()-index;
		if (list != null) {
			if (list.size() < len) {
				len = list.size();
			}
		}

    	// Call worker method
    	doReplaceAll(index, len, list);
    }
Set or add the specified elements.

@param index index of first element to set or add
@param list  list with elements to set or add
jphp-runtime/src/php/runtime/memory/support/IList.java