public interface CellRange<C extends Cell>
extends java.lang.Iterable<C>
Sheet
Modifier and Type | Method and Description |
---|---|
C |
getCell(int relativeRowIndex,
int relativeColumnIndex) |
C[][] |
getCells() |
C[] |
getFlattenedCells() |
int |
getHeight() |
java.lang.String |
getReferenceText() |
C |
getTopLeftCell() |
int |
getWidth() |
java.util.Iterator<C> |
iterator() |
int |
size()
Gets the number of cells in this range.
|
int getWidth()
int getHeight()
int size()
height * width
java.lang.String getReferenceText()
C getTopLeftCell()
null
.C getCell(int relativeRowIndex, int relativeColumnIndex)
relativeRowIndex
- must be between 0
and height-1
relativeColumnIndex
- must be between 0
and width-1
null
.C[] getFlattenedCells()
C[][] getCells()
0...height-1
)
and the second dimension is the column index (values 0...width-1
)Copyright 2022 The Apache Software Foundation or its licensors, as applicable.