Lines Matching refs:index
55 public char charAt(final int index) {
56 if (index >= this.length())
57 throw new IndexOutOfBoundsException("Rope index out of range: " + index);
59 return (index < this.left.length() ? this.left.charAt(index): this.right.charAt(index - this.left.length()));
85 public char charAt(final int index) {
86 if (index > this.iterator.getPos()) {
87 this.iterator.skip(index-this.iterator.getPos()-1);
92 System.out.println("Rope length is: " + rope.length() + " charAt is " + index);
95 } else { /* if (index <= lastIndex) */
96 final int toMoveBack = this.iterator.getPos() - index + 1;
101 return rope.charAt(index);
138 throw new IndexOutOfBoundsException("Rope index out of range: " + start);
164 throw new IndexOutOfBoundsException("Rope index out of range: " + start);