/** the DimensionsRecord is always present */
private DimensionsRecord _dimensions;
/** always present */
- protected final RowRecordsAggregate _rowsAggregate;
+ protected final RowRecordsAggregate _rowsAggregate;
private DataValidityTable _dataValidityTable= null;
private ConditionalFormattingTable condFormatting;
- private Iterator rowRecIterator = null;
+ private Iterator<RowRecord> rowRecIterator = null;
/** Add an UncalcedRecord if not true indicating formulas have not been calculated */
protected boolean _isUncalced = false;
{
return null;
}
- return ( RowRecord ) rowRecIterator.next();
+ return rowRecIterator.next();
}
/**
//an iterator and use that instance throughout, rather than recreating one and
//having to move it to the right position.
int startIndex = block * DBCellRecord.BLOCK_SIZE;
- Iterator rowIter = _rowRecords.values().iterator();
+ Iterator<RowRecord> rowIter = _rowRecords.values().iterator();
RowRecord row = null;
//Position the iterator at the start of the block
for (int i=0; i<=startIndex;i++) {
- row = (RowRecord)rowIter.next();
+ row = rowIter.next();
}
if (row == null) {
throw new RuntimeException("Did not find start row for block " + block);
if (endIndex >= _rowRecords.size())
endIndex = _rowRecords.size()-1;
- Iterator rowIter = _rowRecords.values().iterator();
+ Iterator<RowRecord> rowIter = _rowRecords.values().iterator();
RowRecord row = null;
for (int i=0; i<=endIndex;i++) {
- row = (RowRecord)rowIter.next();
+ row = rowIter.next();
}
if (row == null) {
throw new RuntimeException("Did not find start row for block " + block);
final int startIndex = blockIndex*DBCellRecord.BLOCK_SIZE;
final int endIndex = startIndex + DBCellRecord.BLOCK_SIZE;
- Iterator rowIterator = _rowRecords.values().iterator();
+ Iterator<RowRecord> rowIterator = _rowRecords.values().iterator();
//Given that we basically iterate through the rows in order,
//For a performance improvement, it would be better to return an instance of
}
}
- public Iterator getIterator() {
+ public Iterator<RowRecord> getIterator() {
return _rowRecords.values().iterator();
}