public class Region extends Object
| Modifier and Type | Field | Description |
|---|---|---|
protected int |
_beginIndex |
|
protected int |
_endIndex |
| Constructor | Description |
|---|---|
Region(int aBeginIndex,
int aEndIndex) |
Constructs a
Region instance. |
| Modifier and Type | Method | Description |
|---|---|---|
int |
getBeginIndex() |
Returns the beginning index of the region (being semantically included by
the region being described).
|
int |
getEndIndex() |
Returns the end index of the region (being semantically excluded by the
region being described).
|
int |
getLength() |
Returns the length of the region as of
getEndIndex() -
getBeginIndex(). |
public Region(int aBeginIndex,
int aEndIndex)
Region instance.aBeginIndex - The beginning index (included) of the text region.aEndIndex - The end index (being excluded) of the region.public int getBeginIndex()
public int getEndIndex()
public int getLength()
getEndIndex() -
getBeginIndex().Copyright © 2021. All rights reserved.