Enum Class CellDataType

java.lang.Object
java.lang.Enum<CellDataType>
org.aoju.bus.office.excel.sax.CellDataType
All Implemented Interfaces:
Serializable, Comparable<CellDataType>, Constable

public enum CellDataType extends Enum<CellDataType>
单元格数据类型枚举
Since:
Java 17+
Author:
Kimi Liu
  • Enum Constant Details

    • BOOL

      public static final CellDataType BOOL
      Boolean类型
    • ERROR

      public static final CellDataType ERROR
      类型错误
    • FORMULA

      public static final CellDataType FORMULA
      计算结果类型
    • INLINESTRING

      public static final CellDataType INLINESTRING
      富文本类型
    • SSTINDEX

      public static final CellDataType SSTINDEX
      共享字符串索引类型
    • NUMBER

      public static final CellDataType NUMBER
      数字类型
    • DATE

      public static final CellDataType DATE
      日期类型
    • NULL

      public static final CellDataType NULL
      空类型
  • Method Details

    • values

      public static CellDataType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CellDataType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • of

      public static CellDataType of(String name)
      类型字符串转为枚举
      Parameters:
      name - 类型字符串
      Returns:
      类型枚举
    • getName

      public String getName()
      获取对应类型的属性值
      Returns:
      属性值