Lines Matching refs:length
40 private final int length;
51 this.length = left.length() + right.length();
56 if (index >= this.length())
59 return (index < this.left.length() ? this.left.charAt(index): this.right.charAt(index - this.left.length()));
92 System.out.println("Rope length is: " + rope.length() + " charAt is " + index);
107 public int length() {
108 return rope.length();
137 if (start < 0 || start > this.length())
139 if (start >= this.left.length()) {
140 return this.right.iterator(start - this.left.length());
147 public int length() {
148 return this.length;
163 if (start < 0 || start > this.length())
165 if (start >= this.right.length()) {
166 return this.left.reverseIterator(start - this.right.length());
174 if (start < 0 || end > this.length())
176 if (start == 0 && end == this.length())
178 final int l = this.left.length();
195 public void write(final Writer out, final int offset, final int length) throws IOException {
196 if (offset + length <= this.left.length()) {
197 this.left.write(out, offset, length);
198 } else if (offset >= this.left.length()) {
199 this.right.write(out, offset - this.left.length(), length);
201 final int writeLeft = this.left.length() - offset;
203 this.right.write(out, 0, length - writeLeft);