public class MutableOffsetLocation extends Object implements OffsetLocation
OffsetLocation that is mutable.| Constructor and Description |
|---|
MutableOffsetLocation() |
MutableOffsetLocation(int index) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Location o) |
OffsetLocation |
copy()
Create a copy of this location.
|
boolean |
equals(Object obj) |
int |
get()
Get the offset.
|
int |
hashCode() |
MutableOffsetLocation |
moveTextIndex(CharSequence sequence)
Move the text index according to the given sequence of characters.
|
MutableOffsetLocation |
moveTextIndex(CharSequence sequence,
int offset,
int length)
Move the text index according to the given sequence of characters.
|
MutableOffsetLocation |
moveTextIndex(int amount)
Create a version of this
Location that has moved a number of
positions in a text. |
void |
set(int index) |
String |
toString()
Return a string representation of this location suitable for debugging
output, such as in log messages.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitisAfter, isBefore, isSameOrAfter, isSameOrBefore, offset, textpublic MutableOffsetLocation()
public MutableOffsetLocation(int index)
public int get()
OffsetLocationget in interface OffsetLocationpublic void set(int index)
public MutableOffsetLocation moveTextIndex(int amount)
OffsetLocationLocation that has moved a number of
positions in a text.moveTextIndex in interface OffsetLocationpublic MutableOffsetLocation moveTextIndex(CharSequence sequence)
OffsetLocationmoveTextIndex in interface LocationmoveTextIndex in interface OffsetLocationpublic MutableOffsetLocation moveTextIndex(CharSequence sequence, int offset, int length)
OffsetLocationmoveTextIndex in interface LocationmoveTextIndex in interface OffsetLocationpublic OffsetLocation copy()
OffsetLocationcopy in interface Locationcopy in interface OffsetLocationpublic int compareTo(Location o)
compareTo in interface Comparable<Location>Copyright © 2018. All rights reserved.