Package org.apache.poi.ss.usermodel
Class CellValue
java.lang.Object
org.apache.poi.ss.usermodel.CellValue
Mimics the 'data view' of a cell. This allows formula evaluator
to return a CellValue instead of precasting the value to String
or Number or boolean type.
-
Field Details
-
TRUE
-
FALSE
-
-
Constructor Details
-
CellValue
public CellValue(double numberValue) -
CellValue
-
-
Method Details
-
valueOf
-
getError
-
getBooleanValue
public boolean getBooleanValue()- Returns:
- Returns the booleanValue.
-
getNumberValue
public double getNumberValue()- Returns:
- Returns the numberValue.
-
getStringValue
- Returns:
- Returns the stringValue.
-
getCellTypeEnum
Deprecated.usegetCellType
insteadReturn the cell type.- Returns:
- the cell type
- Since:
- POI 3.15
-
getCellType
Return the cell type.- Returns:
- the cell type
-
getErrorValue
public byte getErrorValue()- Returns:
- Returns the errorValue.
-
toString
-
formatAsString
-
getCellType
instead