Class ValueRecordsAggregate
- java.lang.Object
-
- org.apache.poi.hssf.record.aggregates.ValueRecordsAggregate
-
- All Implemented Interfaces:
Iterable<CellValueRecordInterface>
public final class ValueRecordsAggregate extends Object implements Iterable<CellValueRecordInterface>
Aggregate value records together. Things are easier to handle that way.
-
-
Constructor Summary
Constructors Constructor Description ValueRecordsAggregate()Creates a new instance of ValueRecordsAggregate
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddMultipleBlanks(MulBlankRecord mbr)voidconstruct(CellValueRecordInterface rec, RecordStream rs, SharedValueManager sfh)Processes a single cell value recordintgetFirstCellNum()intgetLastCellNum()intgetPhysicalNumberOfCells()intgetRowCellBlockSize(int startRow, int endRow)Tallies a count of the size of the cell records that are attached to the rows in the range specified.voidinsertCell(CellValueRecordInterface cell)Iterator<CellValueRecordInterface>iterator()value iteratorvoidremoveAllCellsValuesForRow(int rowIndex)voidremoveCell(CellValueRecordInterface cell)booleanrowHasCells(int row)Returns true if the row has cells attached to itSpliterator<CellValueRecordInterface>spliterator()value spliteratorvoidupdateFormulasAfterRowShift(FormulaShifter shifter, int currentExternSheetIndex)voidvisitCellsForRow(int rowIndex, RecordAggregate.RecordVisitor rv)
-
-
-
Method Detail
-
insertCell
public void insertCell(CellValueRecordInterface cell)
-
removeCell
public void removeCell(CellValueRecordInterface cell)
-
removeAllCellsValuesForRow
public void removeAllCellsValuesForRow(int rowIndex)
-
getPhysicalNumberOfCells
public int getPhysicalNumberOfCells()
-
getFirstCellNum
public int getFirstCellNum()
-
getLastCellNum
public int getLastCellNum()
-
addMultipleBlanks
public void addMultipleBlanks(MulBlankRecord mbr)
-
construct
public void construct(CellValueRecordInterface rec, RecordStream rs, SharedValueManager sfh)
Processes a single cell value record- Parameters:
sfh- used to resolve any shared-formulas/arrays/tables for the current sheet
-
getRowCellBlockSize
public int getRowCellBlockSize(int startRow, int endRow)Tallies a count of the size of the cell records that are attached to the rows in the range specified.
-
rowHasCells
public boolean rowHasCells(int row)
Returns true if the row has cells attached to it
-
visitCellsForRow
public void visitCellsForRow(int rowIndex, RecordAggregate.RecordVisitor rv)
-
updateFormulasAfterRowShift
public void updateFormulasAfterRowShift(FormulaShifter shifter, int currentExternSheetIndex)
-
iterator
public Iterator<CellValueRecordInterface> iterator()
value iterator- Specified by:
iteratorin interfaceIterable<CellValueRecordInterface>
-
spliterator
public Spliterator<CellValueRecordInterface> spliterator()
value spliterator- Specified by:
spliteratorin interfaceIterable<CellValueRecordInterface>- Since:
- POI 5.2.0
-
-