Buffer.checkIndex

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

  1. int checkIndex(int i)
    class Buffer
    final
    int
    checkIndex
    (
    int i
    )
  2. int checkIndex(int i, int nb)

Meta