public final class CellValue
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static CellValue |
FALSE |
static CellValue |
TRUE |
Constructor and Description |
---|
CellValue(double numberValue) |
CellValue(java.lang.String stringValue) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
formatAsString() |
boolean |
getBooleanValue() |
int |
getCellType()
Deprecated.
POI 3.15. Use
getCellTypeEnum() instead. |
CellType |
getCellTypeEnum()
Return the cell type.
|
static CellValue |
getError(int errorCode) |
byte |
getErrorValue() |
double |
getNumberValue() |
java.lang.String |
getStringValue() |
java.lang.String |
toString() |
static CellValue |
valueOf(boolean booleanValue) |
public CellValue(double numberValue)
public CellValue(java.lang.String stringValue)
public static CellValue valueOf(boolean booleanValue)
public static CellValue getError(int errorCode)
public boolean getBooleanValue()
public double getNumberValue()
public java.lang.String getStringValue()
@Removal(version="4.2") public CellType getCellTypeEnum()
getCellTypeEnum()
when we make the CellType enum transition in POI 4.0. See bug 59791.@Deprecated public int getCellType()
getCellTypeEnum()
instead.CellType
in version 4.0 of POI.
For forwards compatibility, do not hard-code cell type literals in your code.public byte getErrorValue()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String formatAsString()
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.