Inserts elements at the specified index position. @param index inserting position @param elements elements to be inserted
(final int index, final int... elements)
| 132 | * @param elements elements to be inserted |
| 133 | */ |
| 134 | public void insert(final int index, final int... elements) { |
| 135 | final int l = elements.length; |
| 136 | if(l == 0) return; |
| 137 | if(size + l > list.length) list = Arrays.copyOf(list, newCapacity(size + l)); |
| 138 | Array.insert(list, index, l, size, elements); |
| 139 | size += l; |
| 140 | } |
| 141 | |
| 142 | /** |
| 143 | * Removes all occurrences of the specified element from the list. |
no test coverage detected