public final class Region extends SimpleRegion
This class is immutable.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
UNKNOWN_ORIGIN
Name that is used if region is created without name
|
END_PROPERTY, START_AND_END_COMPARATOR, START_PROPERTY| Constructor and Description |
|---|
Region(int start,
int end)
Creates a region with an unknown origin
|
Region(int start,
int end,
java.lang.String origin)
Creates a region with an origin.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getOrigin()
Get origin.
|
adjacent, compareTo, containsPosition, equals, equalsStartEnd, getEnd, getLength, getStart, hashCode, isEmpty, overlaps, toStringpublic static final java.lang.String UNKNOWN_ORIGIN
public Region(int start, int end, java.lang.String origin)
start - Inclusive start position of the regionend - Inclusive end position of the regionorigin - Region origin. (i.e. region producer)public Region(int start, int end)
start - Inclusive start position of the regionend - Inclusive end position of the regionpublic java.lang.String getOrigin()