public void initAll(IList<? extends E> list) {
    	checkNonNull(list);
    	doReplaceAll(0, size(), list);
    }
Initializes the list so it will afterwards only contain the elements of the collection.
The list will grow or shrink as needed.

@param list 	list with elements
@throws 		IndexOutOfBoundsException if the length is invalid
jphp-runtime/src/php/runtime/memory/support/IList.java