public final class FileRange extends Object
Constructor and Description |
---|
FileRange(long start,
long end)
Creates an instance of the
class. |
Modifier and Type | Method and Description |
---|---|
long |
getEndOffset()
Gets the ending offset.
|
long |
getStartOffset()
Gets the starting offset.
|
void |
setEndOffset(long endOffset)
Sets the ending offset.
|
void |
setStartOffset(long startOffset)
Sets the starting offset.
|
String |
toString()
Returns the content of the file range as a string.
|
public FileRange(long start, long end)
FileRange
class.start
- A long
which represents the starting offset.end
- A long
which represents the ending offset.public long getEndOffset()
long
which represents the ending offset.public long getStartOffset()
long
which represents the starting offset.public void setEndOffset(long endOffset)
endOffset
- A long
which specifies the ending offset.public void setStartOffset(long startOffset)
startOffset
- A long
which specifies the starting offset.Copyright © 2019. All rights reserved.