| Modifier and Type | Method and Description |
|---|---|
long |
getEnd()
Get end of range.
|
long |
getStart()
Get start of range.
|
boolean |
validate(long length)
Normalize and validate range.
|
public long getStart()
validate(long).public long getEnd()
validate(long).public boolean validate(long length)
start of range is -1 (range without start position)
start position should be set to
length - (-1 * start), end will be set to
length - 1end of range is -1 (range without end position)
end will be set to length - 1end of range is greater then length
will be set to length - 1length - total length of contenttrue if range is valid and false
otherwiseCopyright © 2015. All rights reserved.