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, toString
public DebugCharSequenceWithOffset(ICharSequenceWithOffset delegate)
public int getOffset()
ICharSequenceWithOffset
getOffset
in interface ICharSequenceWithOffset
public void incOffset()
ICharSequenceWithOffset
incOffset
in interface ICharSequenceWithOffset
public void incOffset(int amount)
ICharSequenceWithOffset
incOffset
in interface ICharSequenceWithOffset
amount
- the number of offset that should be shifted.public void setOffset(int offset)
ICharSequenceWithOffset
setOffset
in interface ICharSequenceWithOffset
offset
- the new offset.