Enum Class CellType

java.lang.Object
java.lang.Enum<CellType>
org.apache.poi.ss.usermodel.CellType
All Implemented Interfaces:
Serializable, Comparable<CellType>, Constable

public enum CellType extends Enum<CellType>
Since:
POI 3.15 beta 3
  • Enum Constant Details

    • _NONE

      @Internal(since="POI 3.15 beta 3") public static final CellType _NONE
      Unknown type, used to represent a state prior to initialization or the lack of a concrete type. For internal use only.
    • NUMERIC

      public static final CellType NUMERIC
      Numeric cell type (whole numbers, fractional numbers, dates)
    • STRING

      public static final CellType STRING
      String (text) cell type
    • FORMULA

      public static final CellType FORMULA
      Formula cell type
      See Also:
    • BLANK

      public static final CellType BLANK
      Blank cell type
    • BOOLEAN

      public static final CellType BOOLEAN
      Boolean cell type
    • ERROR

      public static final CellType ERROR
      Error cell type
      See Also:
  • Method Details

    • values

      public static CellType[] 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 CellType 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
    • forInt

      public static CellType forInt(int code)
      Deprecated.
      POI 3.15 beta 3. Used to transition code from ints to CellTypes.
      Since:
      POI 3.15 beta 3.
    • getCode

      public int getCode()
      Deprecated.
      POI 3.15 beta 3
      Since:
      POI 3.15 beta 3