(int location)
| 333 | } |
| 334 | |
| 335 | @Override |
| 336 | public E get(int location) { |
| 337 | if (location < 0 || location >= size) { |
| 338 | throw new IndexOutOfBoundsException( |
| 339 | // luni.0A=Index: {0}, Size: {1} |
| 340 | Messages.getString("luni.0A", //$NON-NLS-1$ |
| 341 | Integer.valueOf(location), |
| 342 | Integer.valueOf(size))); |
| 343 | } |
| 344 | return array[firstIndex + location]; |
| 345 | } |
| 346 | |
| 347 | private void growAtEnd(int required) { |
| 348 | if (array.length - size >= required) { |