CharIndexed, java.io.Serializableclass CharIndexedString extends java.lang.Object implements CharIndexed, java.io.Serializable
OUT_OF_BOUNDS| Constructor | Description |
|---|---|
CharIndexedString(java.lang.String str,
int index) |
| Modifier and Type | Method | Description |
|---|---|---|
char |
charAt(int index) |
Returns the character at the given offset past the current cursor
position in the input.
|
boolean |
isValid() |
Returns true if the most recent move() operation placed the cursor
position at a valid position in the input.
|
boolean |
move(int index) |
Shifts the input buffer by a given number of positions.
|
public char charAt(int index)
CharIndexedcharAt in interface CharIndexedindex - the offset position in the character field to examinepublic boolean isValid()
CharIndexedisValid in interface CharIndexedpublic boolean move(int index)
CharIndexedmove in interface CharIndexed