Range implements Comparable<Range> { public Range(long startOffset, long endOffset) { start = startOffset; end = endOffset; } Range(long startOffset, long endOffset);  Range(); boolean contains(long someOffset); static boolean containsReaderPosition(long writerStart,
												long writerEnd,
												long readerPosition,
												BufferPositionParser parser); static boolean containsIgnoreGenId(long start,
			                                  long end,
			                                  long offset,
			                                  BufferPositionParser parser); static boolean contains(long start, long end, long someOffset); boolean intersects(Range intersectedRange); @Override int compareTo(Range comparedRange); String toString(BufferPositionParser parser); @Override String toString(); long getStart(); void setStart(long start); long getEnd(); void setEnd(long end); @Override boolean equals(Object obj); @Override int hashCode(); public long start; public long end; }
@Test public void testRange() { Range r = new Range(20, 3000); AssertJUnit.assertEquals(20, r.start); AssertJUnit.assertEquals(3000, r.end); r.start = 46; AssertJUnit.assertEquals(46, r.start); }