Lines Matching defs:length
40 private final int length;
51 this.length = left.length() + right.length();
56 if (index < 0 || index >= this.length())
59 if (index < this.left.length())
62 return this.right.charAt(index - this.left.length());
95 System.out.println("Rope length is: " + rope.length() + " charAt is " + index);
110 public int length() {
111 return rope.length();
140 if (start < 0 || start > this.length())
142 if (start >= this.left.length()) {
143 return this.right.iterator(start - this.left.length());
150 public int length() {
151 return this.length;
166 if (start < 0 || start > this.length())
168 if (start >= this.right.length()) {
169 return this.left.reverseIterator(start - this.right.length());
177 if (start < 0 || end > this.length())
179 if (start == 0 && end == this.length())
181 final int l = this.left.length();
198 public void write(final Writer out, final int offset, final int length) throws IOException {
199 if (offset + length < this.left.length()) {
200 this.left.write(out, offset, length);
201 } else if (offset >= this.left.length()) {
202 this.right.write(out, offset - this.left.length(), length);
204 final int writeLeft = this.left.length() - offset;
206 this.right.write(out, 0, this.right.length() - writeLeft);