public final class Range extends Object
| Constructor and Description |
|---|
Range(long offset,
long size)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getOffset() |
long |
getSize() |
static Range |
rangeFromChunkInfo(long chunkOffset,
long chunkSize)
The range from the chunk info.
|
static Range |
rangeFromPageInfo(long pageIndex,
long pageSize)
The range from the page info.
|
String |
toString() |
public Range(long offset,
long size)
offset - the range offsetsize - the range sizepublic long getOffset()
public long getSize()
public static Range rangeFromChunkInfo(long chunkOffset, long chunkSize)
chunkOffset - the chunk offsetchunkSize - the chunk sizepublic static Range rangeFromPageInfo(long pageIndex, long pageSize)
pageIndex - the page indexpageSize - the page sizeCopyright © 2013-2016–2016 SeedStack. All rights reserved.