class ShapeFileIndexRecord implements Comparable<ShapeFileIndexRecord> {

	@Override
	@Pure
	public int compareTo(ShapeFileIndexRecord record) {
		if (record == null) {
			return -1;
		}
		final int cmp = this.offset - record.offset;
		if (cmp != 0) {
			return cmp;
		}
		return this.length - record.length;
	}

	  ShapeFileIndexRecord(int recordOffset, int length, boolean recordContentSize, int index);

}