public class MutableRange
Represents a text range with mutable bounds
| Constructor and Description |
|---|
MutableRange(int start,
int end)
Represents a text range with mutable bounds
|
| Modifier and Type | Method and Description |
|---|---|
int |
getEnd()
points to the next character after the last one
|
int |
getStart()
points to the first character
|
void |
setEnd(int p)
points to the next character after the last one
|
void |
setStart(int p)
points to the first character
|
java.lang.String |
toString() |
public MutableRange(int start,
int end)
Represents a text range with mutable bounds
start - points to the first characterend - points to the next character after the last onestart - points to the first characterend - points to the next character after the last onepublic java.lang.String toString()
public int getStart()
points to the first character
public void setStart(int p)
points to the first character
p - points to the first characterpublic int getEnd()
points to the next character after the last one
public void setEnd(int p)
points to the next character after the last one
p - points to the next character after the last one