public class StringWithOffset extends Object implements ICharSequenceWithOffset, IMarkerFactory
IMarkerFactory.IMarker| Constructor and Description |
|---|
StringWithOffset(String value) |
| Modifier and Type | Method and Description |
|---|---|
char |
charAt(int index) |
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.
|
int |
length() |
IMarkerFactory.IMarker |
mark()
Creates a new marker.
|
void |
setOffset(int offset)
Random access to modify the offset.
|
CharSequence |
subSequence(int start,
int end) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoStringpublic StringWithOffset(String value)
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.public char charAt(int index)
charAt in interface CharSequencepublic int length()
length in interface CharSequencepublic CharSequence subSequence(int start, int end)
subSequence in interface CharSequencepublic IMarkerFactory.IMarker mark()
IMarkerFactorymark in interface IMarkerFactoryCopyright © 2015. All Rights Reserved.