Modifier and Type | Method and Description |
---|---|
static <B extends Cell> |
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.
(获取此范围内的单元格数。)
|
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)
public int getHeight()
public int getWidth()
public int size()
CellRange
public java.lang.String getReferenceText()
getReferenceText
in interface
CellRange<K extends Cell>
(接口 CellRange 中的 getReferenceText
public K getTopLeftCell()
getTopLeftCell
in interface
CellRange<K extends Cell>
(接口 CellRange 中的 getTopLeftCell
null
.
(相对坐标 (0,0) 处的单元格。从不为空。)
public K getCell(int relativeRowIndex, int relativeColumnIndex)
getCell
in interface
CellRange<K extends Cell>
(接口 CellRange 中的 getCell
relativeRowIndex
- must be between
0 and
height-1
(relativeRowIndex - 必须介于 0 和 height-1 之间)
relativeColumnIndex
- must be between
0 and
width-1
(relativeColumnIndex - 必须介于 0 和 width-1 之间)
null
.
(指定坐标处的单元格。从不为空。)
public K[] getFlattenedCells()
getFlattenedCells
in interface
CellRange<K extends Cell>
(接口 CellRange 中的 getFlattenedCells
CellRange
(此 CellRange 中所有单元格的扁平数组)
public K[][] getCells()
getCells
in interface
CellRange<K extends Cell>
(接口 CellRange 中的 getCells
CellRange
. The first array dimension is the row index (values
0...height-1) and the second dimension is the column index (values
0...width-1)
(此 CellRange 中所有单元格的二维数组。第一个数组维度是行索引(值 0...height-1),第二个维度是列索引(值 0...width-1))
public java.util.Iterator<K> iterator()
iterator
in interface
java.lang.Iterable<K extends Cell>
(接口 java.lang.Iterable 中的迭代器
iterator
in interface
CellRange<K extends Cell>
(接口 CellRange 中的迭代器
Iterator
over all cells in this range. Iteration starts with all cells in the first row followed by all cells in the next row, etc.
(此范围内所有单元格的迭代器。迭代从第一行中的所有单元格开始,然后是下一行中的所有单元格,依此类推。)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.