Enum Class CellFormatType

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

public enum CellFormatType extends Enum<CellFormatType>
The different kinds of formats that the formatter understands.
Author:
Ken Arnold, Industrious Media LLC
  • Enum Constant Details

    • GENERAL

      public static final CellFormatType GENERAL
      The general (default) format; also used for "General".
    • NUMBER

      public static final CellFormatType NUMBER
      A numeric format.
    • DATE

      public static final CellFormatType DATE
      A date format.
    • ELAPSED

      public static final CellFormatType ELAPSED
      An elapsed time format.
    • TEXT

      public static final CellFormatType TEXT
      A text format.
  • Method Details

    • values

      public static CellFormatType[] 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 CellFormatType 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