internal int checkIndex(int i) { // package-private if ((i < 0) || (i >= _limit)) throw new IndexOutOfBoundsException(); return i; }