Package java.util
Class AbstractSequentialList
boolean addAll(int index, Collection c)
Overrides:
_INSERT_METHOD_SIGNATURE_HERE_
Description:
Inserts all of the elements in the specified collection into this list at the specified position. Shifts the elements currently at that position to the right (increases their indices). The new elements will appear in the list in the order that they are returned by the specified collection's iterator.
The behavior of this operation is unspecified if the specified collection is modified while the operation is in progress. (Note that this will occur if the specified collection is this list, and it's nonempty.)
This implementation gets an iterator over the specified collection and a list iterator over this list pointing to the indexed element (with listIterator(index)). Then, it iterates over the specified collection, inserting the elements obtained from the iterator into this list, one at a time, using ListIterator.add followed by ListIterator.next (to skip over the added element).