rabbit.io
Class Range
java.lang.Object
rabbit.io.Range
public class Range
- extends Object
A class to handle a range.
- Author:
- Robert Olofsson
|
Constructor Summary |
Range(long start,
long end)
Create a range that spans the given values (inclusive). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Range
public Range(long start,
long end)
- Create a range that spans the given values (inclusive).
- Parameters:
start - the lower value of the rangeend - the upper value of the range
getStart
public long getStart()
- Returns:
- the lower bound of this range
getEnd
public long getEnd()
- Returns:
- the upper bound of this range
size
public long size()
- Returns:
- the number of bytes in this range