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)
K
getCell(int relativeRowIndex, int relativeColumnIndex)
K[][]
getCells()
K[]
getFlattenedCells()
int
getHeight()
java.lang.String
getReferenceText()
K
getTopLeftCell()
int
getWidth()
java.util.Iterator<K>
iterator()
int
size()
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:CellRange
Gets the number of cells in this range.
-
getReferenceText
public java.lang.String getReferenceText()
- Specified by:
getReferenceText
in 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:
getTopLeftCell
in 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:
getFlattenedCells
in 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()
-
-