public class DebugCharSequenceWithOffset extends DebugCharSequence implements ICharSequenceWithOffset
| Constructor and Description |
|---|
DebugCharSequenceWithOffset(ICharSequenceWithOffset delegate) |
| Modifier and Type | Method and Description |
|---|---|
int |
getOffset()
Retrieves the current state of the offset property.
|
void |
incOffset()
Increments the offset by one.
|
void |
incOffset(int amount)
Increments the offset by the given amount.
|
void |
setOffset(int offset)
Random access to modify the offset.
|
charAt, length, subSequence, toStringpublic DebugCharSequenceWithOffset(ICharSequenceWithOffset delegate)
public int getOffset()
ICharSequenceWithOffsetgetOffset in interface ICharSequenceWithOffsetpublic void incOffset()
ICharSequenceWithOffsetincOffset in interface ICharSequenceWithOffsetpublic void incOffset(int amount)
ICharSequenceWithOffsetincOffset in interface ICharSequenceWithOffsetamount - the number of offset that should be shifted.public void setOffset(int offset)
ICharSequenceWithOffsetsetOffset in interface ICharSequenceWithOffsetoffset - the new offset.