public abstract class Row extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
protected org.apache.logging.log4j.Logger |
logger |
| 构造器和说明 |
|---|
Row() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.ttzero.excel.reader.HeaderRow |
asHeader()
convert row to header_row
|
<T> T |
geet()
Returns the binding type if is bound, otherwise returns Row
|
<T> T |
get()
Returns the binding type if is bound, otherwise returns Row
|
boolean |
getBoolean(int columnIndex)
Get boolean value by column index
|
byte |
getByte(int columnIndex)
Get byte value by column index
|
protected Cell |
getCell(int i) |
CellType |
getCellType(int columnIndex)
Returns the type of cell
|
char |
getChar(int columnIndex)
Get char value by column index
|
Date |
getDate(int columnIndex)
Get date value by column index
|
BigDecimal |
getDecimal(int columnIndex)
Get decimal value by column index
|
double |
getDouble(int columnIndex)
Get double value by column index
|
int |
getFirstColumnIndex()
Returns the index of the first column (zero base)
|
float |
getFloat(int columnIndex)
Get float value by column index
|
int |
getInt(int columnIndex)
Get int value by column index
|
int |
getLastColumnIndex()
Returns the index of the last column (zero base).
|
long |
getLong(int columnIndex)
Get long value by column index
|
int |
getRowNumber()
The number of row.
|
short |
getShort(int columnIndex)
Get short value by column index
|
String |
getString(int columnIndex)
Get string value by column index
|
Time |
getTime(int columnIndex)
Get time value by column index
|
Timestamp |
getTimestamp(int columnIndex)
Get timestamp value by column index
|
boolean |
isEmpty()
Test unused row (not contains any filled or formatted or value)
|
protected void |
rangeCheck(int index) |
<T> T |
to(Class<T> clazz)
Convert to object, support annotation
|
<T> T |
too(Class<T> clazz)
Convert to T object, support annotation
the is a memory shared object
|
String |
toString() |
public int getRowNumber()
public int getFirstColumnIndex()
public int getLastColumnIndex()
public boolean isEmpty()
protected void rangeCheck(int index)
protected Cell getCell(int i)
public org.ttzero.excel.reader.HeaderRow asHeader()
public boolean getBoolean(int columnIndex)
columnIndex - the cell indexpublic byte getByte(int columnIndex)
columnIndex - the cell indexpublic char getChar(int columnIndex)
columnIndex - the cell indexpublic short getShort(int columnIndex)
columnIndex - the cell indexpublic int getInt(int columnIndex)
columnIndex - the cell indexpublic long getLong(int columnIndex)
columnIndex - the cell indexpublic String getString(int columnIndex)
columnIndex - the cell indexpublic float getFloat(int columnIndex)
columnIndex - the cell indexpublic double getDouble(int columnIndex)
columnIndex - the cell indexpublic BigDecimal getDecimal(int columnIndex)
columnIndex - the cell indexpublic Date getDate(int columnIndex)
columnIndex - the cell indexpublic Timestamp getTimestamp(int columnIndex)
columnIndex - the cell indexpublic Time getTime(int columnIndex)
columnIndex - the cell indexpublic CellType getCellType(int columnIndex)
columnIndex - the cell index from zeroCellTypepublic <T> T get()
T - the type of bindingpublic <T> T geet()
T - the type of bindingpublic <T> T to(Class<T> clazz)
T - the type of return objectclazz - the type of bindingpublic <T> T too(Class<T> clazz)
T - the type of return objectclazz - the type of bindingCopyright © 2019. All rights reserved.