rabbit.io
Class Range

java.lang.Object
  extended by 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).
 
Method Summary
 long getEnd()
           
 long getStart()
           
 long size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Range

public Range(long start,
             long end)
Create a range that spans the given values (inclusive).

Parameters:
start - the lower value of the range
end - the upper value of the range
Method Detail

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