Checks the given index against the limit, throwing an {@link IndexOutOfBoundsException} if it is not smaller than the limit or is smaller than zero.
See Implementation
Checks the given index against the limit, throwing an {@link IndexOutOfBoundsException} if it is not smaller than the limit or is smaller than zero.