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
- Author:
- Josh Micich
-
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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
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
-