addSeveralAt
Adds provided number of elements before element with index index. ith new element is a result of builder(i). The builder is consecutively called on indices from 0 to number exclusive.
For each index from 0 to size there is exactly one corresponding place for a value. And this operation:
for each place with index at least index increases its index by number,
adds places with indices from index to
index + numberexclusive,and puts result of
builder(i)in a place with indexindex + ifor eachifrom0to number exclusive.
All builder invocations are computed consecutively on values from 0 to number exclusive in their order starting with 0.
When index is equal to size the elements are added at the end.
If index is greater than size, IndexOutOfBoundsException is thrown.
Throws
when index is greater than size.