From a freely available source, downloaded here http://poi.apache.org/download.html , we have ...
public CellRangeAddress getMergedRegion(int index) { return _sheet.getMergedRegionAt(index); }
When we go to getMergedRegionAt , we find
public CellRangeAddress getMergedRegionAt(int index) { //safety checks MergedCellsTable mrt = getMergedRecords(); if (index >= mrt.getNumberOfMergedRegions()) { return null; } return mrt.get(index); }
Here we see that there is a MergedCellsTable , this indicates that each worksheet has a data structure that maintains a list of merged cells in the worksheet.
When viewing the code, the index refers to a specific MergedRegion , whose CellRangeAddress is required in the context of the presence of many regions.
You can write this as a document error or send a patch to improve JavaDoc.
source share