Package org.apache.poi.ss.util
Class SSCellRange<K extends Cell>
java.lang.Object
org.apache.poi.ss.util.SSCellRange<K>
For POI internal use only
-
Method Summary
Modifier and TypeMethodDescriptionstatic <B extends Cell>
SSCellRange<B> create(int firstRow, int firstColumn, int height, int width, List<B> flattenedList, Class<B> cellClass) getCell(int relativeRowIndex, int relativeColumnIndex) K[][]getCells()K[]intintgetWidth()iterator()intsize()Gets the number of cells in this range.
-
Method Details
-
create
public static <B extends Cell> SSCellRange<B> create(int firstRow, int firstColumn, int height, int width, List<B> flattenedList, Class<B> cellClass) -
getHeight
public int getHeight() -
getWidth
public int getWidth() -
size
public int size()Description copied from interface:CellRangeGets the number of cells in this range. -
getReferenceText
- Specified by:
getReferenceTextin interfaceCellRange<K extends Cell>- Returns:
- the text format of this range. Single cell ranges are formatted like single cell references (e.g. 'A1' instead of 'A1:A1').
-
getTopLeftCell
- Specified by:
getTopLeftCellin interfaceCellRange<K extends Cell>- Returns:
- the cell at relative coordinates (0,0). Never
null.
-
getCell
-
getFlattenedCells
- Specified by:
getFlattenedCellsin interfaceCellRange<K extends Cell>- Returns:
- a flattened array of all the cells in this CellRange
-
getCells
-
iterator
-
spliterator
- Specified by:
spliteratorin interfaceIterable<K extends Cell>- Since:
- POI 5.2.0
-