public void initAll(Collection<? extends E> coll) {
    	if (coll instanceof IList) {
    		initAll((IList<? extends E>) coll);
    	} else if (coll instanceof List) {
    		initAll(new IReadOnlyListFromList<E>((List<? extends E>) coll));
    	} else {
    		initAll(new IReadOnlyListFromCollection<E>(coll));
    	}
    }
Initializes the list so it will afterwards only contain the elements of the collection.
The list will grow or shrink as needed.

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