/** * @param firstCell as extracted from the {@link ExpPtg} from the cell's formula. * @return never <code>null</code> */ public SharedFormulaRecord LinkSharedFormulaRecord(CellReference firstCell, FormulaRecordAggregate agg) { SharedFormulaGroup result = FindFormulaGroup(GetGroups(), firstCell); result.Add(agg); return(result.SFR); }
/** * @param firstCell as extracted from the {@link ExpPtg} from the cell's formula. * @return never <code>null</code> */ public SharedFormulaRecord LinkSharedFormulaRecord(CellReference firstCell, FormulaRecordAggregate agg) { SharedFormulaGroup result = FindFormulaGroupForCell(firstCell); if (null == result) { throw new RuntimeException("Failed to find a matching shared formula record"); } result.Add(agg); return(result.SFR); }