ShapeFileIndexRecord implements Comparable<ShapeFileIndexRecord> { @Pure public int getOffsetInContent() { return this.offset - ESRIFileUtil.HEADER_BYTES; } ShapeFileIndexRecord(int recordOffset, int length, boolean recordContentSize, int index); @Override @Pure int hashCode(); @Override @Pure boolean equals(Object obj); @Override @Pure int compareTo(ShapeFileIndexRecord record); @Override @Pure String toString(); @Pure int getOffsetInFile(); @Pure int getOffsetInContent(); @Pure int getEntireRecordLength(); @Pure int getRecordContentLength(); @Pure int getRecordIndex();  }
@Test public void testGetOffsetInContent() { assertEquals( ((this.offset%2)!=0 ? this.offset+1 : this.offset) - 100, this.record.getOffsetInContent()); }