Enum Constant and Description |
---|
_NONE
Unknown type, used to represent a state prior to initialization or the lack of a concrete type.
|
BLANK
Blank cell type
|
BOOLEAN
Boolean cell type
|
ERROR
Error cell type
|
FORMULA
Formula cell type
|
NUMERIC
Numeric cell type (whole numbers, fractional numbers, dates)
|
STRING
String (text) cell type
|
Modifier and Type | Method and Description |
---|---|
static CellType |
forInt(int code)
Deprecated.
POI 3.15 beta 3. Used to transition code from
(已弃用。 POI 3.15 beta 3。用于将代码从整数转换为 CellTypes。)
int s to CellType s.
|
int |
getCode()
Deprecated.
POI 3.15 beta 3
(已弃用。 POI 3.15 测试版 3)
|
static CellType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
(返回具有指定名称的此类型的枚举常量。)
|
static CellType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
(按照声明的顺序返回包含此枚举类型常量的数组。)
|
@Internal(since="POI 3.15 beta 3") public static final CellType _NONE
public static final CellType NUMERIC
public static final CellType STRING
public static final CellType FORMULA
FormulaType
public static final CellType BLANK
public static final CellType BOOLEAN
public static final CellType ERROR
FormulaError
public static CellType[] values()
for (CellType c : CellType.values()) System.out.println(c);(按照声明的顺序返回包含此枚举类型常量的数组。此方法可用于迭代常量,如下所示: for (CellType c : CellType.values()) System.out.println(c);)
public static CellType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
(name - 要返回的枚举常量的名称。)
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified name
(java.lang.IllegalArgumentException - 如果此枚举类型没有具有指定名称的常量)
java.lang.NullPointerException
- if the argument is null
(java.lang.NullPointerException - 如果参数为空)
public static CellType forInt(int code)
int
s to CellType
s.
(已弃用。 POI 3.15 beta 3。用于将代码从整数转换为 CellTypes。)
public int getCode()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.