{@inheritDoc}
(int index)
| 420 | * {@inheritDoc} |
| 421 | */ |
| 422 | @Override |
| 423 | public Integer get(int index) { |
| 424 | if (index < 0) { |
| 425 | throw new IndexOutOfBoundsException("Index: " + index + " should not be negative"); |
| 426 | } |
| 427 | if (index >= size()) { |
| 428 | throw new IndexOutOfBoundsException("Index: " + index + " too big for range: " + this); |
| 429 | } |
| 430 | return isReverse() ? getTo() - index : index + getFrom(); |
| 431 | } |
| 432 | |
| 433 | /** |
| 434 | * {@inheritDoc} |