Lines Matching refs:index
55 public char charAt(final int index) {
56 if (index < 0 || index >= this.length())
57 throw new IndexOutOfBoundsException("Rope index out of range: " + index);
59 if (index < this.left.length())
60 return this.left.charAt(index);
62 return this.right.charAt(index - this.left.length());
88 public char charAt(final int index) {
89 if (index > this.iterator.getPos()) {
90 this.iterator.skip(index-this.iterator.getPos()-1);
95 System.out.println("Rope length is: " + rope.length() + " charAt is " + index);
98 } else { /* if (index <= lastIndex) */
99 final int toMoveBack = this.iterator.getPos() - index + 1;
104 return rope.charAt(index);
141 throw new IndexOutOfBoundsException("Rope index out of range: " + start);
167 throw new IndexOutOfBoundsException("Rope index out of range: " + start);