com.alibaba.excel.metadata
类 CellData<T>
- java.lang.Object
-
- com.alibaba.excel.metadata.CellData<T>
public class CellData<T> extends Object
Excel internal cell data.- 作者:
- Jiaju Zhuang
-
构造器概要
构造器 构造器和说明 CellData()
CellData(BigDecimal numberValue)
CellData(Boolean booleanValue)
CellData(byte[] imageValue)
CellData(CellData<T> other)
CellData(CellDataTypeEnum type)
CellData(CellDataTypeEnum type, String stringValue)
CellData(String stringValue)
CellData(T data)
CellData(T data, String formulaValue)
方法概要
所有方法 实例方法 具体方法 限定符和类型 方法和说明 void
checkEmpty()
Ensure that the object does not appear nullBoolean
getBooleanValue()
T
getData()
Integer
getDataFormat()
String
getDataFormatString()
Boolean
getFormula()
String
getFormulaValue()
byte[]
getImageValue()
BigDecimal
getNumberValue()
String
getStringValue()
CellDataTypeEnum
getType()
void
setBooleanValue(Boolean booleanValue)
void
setData(T data)
void
setDataFormat(Integer dataFormat)
void
setDataFormatString(String dataFormatString)
void
setFormula(Boolean formula)
void
setFormulaValue(String formulaValue)
void
setImageValue(byte[] imageValue)
void
setNumberValue(BigDecimal numberValue)
void
setStringValue(String stringValue)
void
setType(CellDataTypeEnum type)
String
toString()
-
构造器详细资料
CellData
public CellData()
CellData
public CellData(T data)
CellData
public CellData(String stringValue)
CellData
public CellData(CellDataTypeEnum type, String stringValue)
CellData
public CellData(BigDecimal numberValue)
CellData
public CellData(byte[] imageValue)
CellData
public CellData(Boolean booleanValue)
CellData
public CellData(CellDataTypeEnum type)
方法详细资料
getType
public CellDataTypeEnum getType()
setType
public void setType(CellDataTypeEnum type)
getNumberValue
public BigDecimal getNumberValue()
setNumberValue
public void setNumberValue(BigDecimal numberValue)
getStringValue
public String getStringValue()
setStringValue
public void setStringValue(String stringValue)
getBooleanValue
public Boolean getBooleanValue()
setBooleanValue
public void setBooleanValue(Boolean booleanValue)
getFormula
public Boolean getFormula()
setFormula
public void setFormula(Boolean formula)
getFormulaValue
public String getFormulaValue()
setFormulaValue
public void setFormulaValue(String formulaValue)
getImageValue
public byte[] getImageValue()
setImageValue
public void setImageValue(byte[] imageValue)
getDataFormat
public Integer getDataFormat()
setDataFormat
public void setDataFormat(Integer dataFormat)
getDataFormatString
public String getDataFormatString()
setDataFormatString
public void setDataFormatString(String dataFormatString)
getData
public T getData()
setData
public void setData(T data)
checkEmpty
public void checkEmpty()
Ensure that the object does not appear null
Copyright © 2018–2019 Alibaba Group. All rights reserved.