Package org.apache.poi.ss.util
Class SSCellRange<K extends Cell>
- java.lang.Object
-
- org.apache.poi.ss.util.SSCellRange<K>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <B extends Cell>
SSCellRange<B>create(int firstRow, int firstColumn, int height, int width, List<B> flattenedList, Class<B> cellClass)KgetCell(int relativeRowIndex, int relativeColumnIndex)K[][]getCells()K[]getFlattenedCells()intgetHeight()StringgetReferenceText()KgetTopLeftCell()intgetWidth()Iterator<K>iterator()intsize()Gets the number of cells in this range.Spliterator<K>spliterator()
-
-
-
Method Detail
-
create
public static <B extends Cell> SSCellRange<B> create(int firstRow, int firstColumn, int height, int width, List<B> flattenedList, Class<B> cellClass)
-
size
public int size()
Description copied from interface:CellRangeGets the number of cells in this range.
-
getReferenceText
public String 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
public K getTopLeftCell()
- Specified by:
getTopLeftCellin interfaceCellRange<K extends Cell>- Returns:
- the cell at relative coordinates (0,0). Never
null.
-
getCell
public K getCell(int relativeRowIndex, int relativeColumnIndex)
-
getFlattenedCells
public K[] getFlattenedCells()
- Specified by:
getFlattenedCellsin interfaceCellRange<K extends Cell>- Returns:
- a flattened array of all the cells in this CellRange
-
getCells
public K[][] getCells()
-
spliterator
public Spliterator<K> spliterator()
- Specified by:
spliteratorin interfaceIterable<K extends Cell>- Since:
- POI 5.2.0
-
-