(int index)
| 156 | } |
| 157 | |
| 158 | public void removeIndex(int index) { |
| 159 | if (pos < 1 || index >= pos) { |
| 160 | return; |
| 161 | } |
| 162 | int move = pos - index - 1; |
| 163 | if (move > 0) { |
| 164 | System.arraycopy(data, index + 1, data, index, move); |
| 165 | } |
| 166 | int index1 = --pos; |
| 167 | data[index1] = NO_ENTRY_VALUE; |
| 168 | } |
| 169 | |
| 170 | public void restoreInitialCapacity() { |
| 171 | data = new byte[initialCapacity]; |