Methods Summary |
---|
public boolean | atEnd()
return this.pos >= this.upperBound;
|
public int | getLowerBound()
return this.lowerBound;
|
public int | getPos()
return this.pos;
|
public int | getUpperBound()
return this.upperBound;
|
public java.lang.String | toString()
CharArrayBuffer buffer = new CharArrayBuffer(16);
buffer.append('[");
buffer.append(Integer.toString(this.lowerBound));
buffer.append('>");
buffer.append(Integer.toString(this.pos));
buffer.append('>");
buffer.append(Integer.toString(this.upperBound));
buffer.append(']");
return buffer.toString();
|
public void | updatePos(int pos)
if (pos < this.lowerBound) {
throw new IndexOutOfBoundsException();
}
if (pos > this.upperBound) {
throw new IndexOutOfBoundsException();
}
this.pos = pos;
|