Search in sources :

Example 1 with SharedValueRecordBase

use of org.apache.poi.hssf.record.SharedValueRecordBase in project poi by apache.

the class TestRowRecordsAggregate method verifySharedFormula.

private static void verifySharedFormula(FormulaRecord firstFormula, Record rec) {
    CellRangeAddress8Bit range = ((SharedValueRecordBase) rec).getRange();
    assertEquals(range.getFirstRow(), firstFormula.getRow());
    assertEquals(range.getFirstColumn(), firstFormula.getColumn());
}
Also used : CellRangeAddress8Bit(org.apache.poi.hssf.util.CellRangeAddress8Bit) SharedValueRecordBase(org.apache.poi.hssf.record.SharedValueRecordBase)

Aggregations

SharedValueRecordBase (org.apache.poi.hssf.record.SharedValueRecordBase)1 CellRangeAddress8Bit (org.apache.poi.hssf.util.CellRangeAddress8Bit)1