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)
K
getCell(int relativeRowIndex, int relativeColumnIndex)
K[][]
getCells()
K[]
getFlattenedCells()
int
getHeight()
String
getReferenceText()
K
getTopLeftCell()
int
getWidth()
Iterator<K>
iterator()
int
size()
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:CellRange
Gets the number of cells in this range.
-
getReferenceText
public 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()
-
spliterator
public Spliterator<K> spliterator()
- Specified by:
spliterator
in interfaceIterable<K extends Cell>
- Since:
- POI 5.2.0
-
-