void (int i, int startOffset, int endOffset) { if (startOffset < 0) { LOG.error("Invalid startOffset:" + startOffset); } if (endOffset < 0) { LOG.error("Invalid endOffset:" + endOffset); } if (i >= mySegmentCount) { mySegmentCount = i + 1; } myStarts = reallocateArray(myStarts, i); myStarts[i] = startOffset; myEnds = reallocateArray(myEnds, i); myEnds[i] = endOffset; }