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, java.util.List<B> flattenedList, java.lang.Class<B> cellClass)KgetCell(int relativeRowIndex, int relativeColumnIndex)K[][]getCells()K[]getFlattenedCells()intgetHeight()java.lang.StringgetReferenceText()KgetTopLeftCell()intgetWidth()java.util.Iterator<K>iterator()intsize()Gets the number of cells in this range.
-
-
-
Method Detail
-
create
public static <B extends Cell> SSCellRange<B> create(int firstRow, int firstColumn, int height, int width, java.util.List<B> flattenedList, java.lang.Class<B> cellClass)
-
size
public int size()
Description copied from interface:CellRangeGets the number of cells in this range.
-
getReferenceText
public java.lang.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()
-
iterator
public java.util.Iterator<K> iterator()
-
-