(int index, int length, T defaultValue)
| 243 | } |
| 244 | |
| 245 | public void insert(int index, int length, T defaultValue) { |
| 246 | checkCapacity(pos + length); |
| 247 | if (pos > index) { |
| 248 | System.arraycopy(buffer, index, buffer, index + length, pos - index); |
| 249 | } |
| 250 | Arrays.fill(buffer, index, index + length, defaultValue); |
| 251 | pos += length; |
| 252 | } |
| 253 | |
| 254 | public T popLast() { |
| 255 | assert pos > 0 : "index out of bounds, " + pos; |
nothing calls this directly
no test coverage detected