Enum Cell.CellType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Cell.CellType>
    Enclosing class:
    Cell

    public static enum Cell.CellType
    extends java.lang.Enum<Cell.CellType>
    Enum defines the basic data types of a cell
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BOOL
      Type for boolean
      DATE
      Type for dates and times (Note: Dates before 1900-01-01 and after 9999-12-31 are not allowed)
      DEFAULT
      Default Type, not specified
      EMPTY
      Type for empty cells.
      FORMULA
      Type for Formulas (The cell will be handled differently)
      NUMBER
      Type for all numeric types (long, integer and float and double)
      STRING
      Type for single characters and strings
      TIME
      Type for times (Note: Internally handled as OAdate, represented by LocalTime
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Cell.CellType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static Cell.CellType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • STRING

        public static final Cell.CellType STRING
        Type for single characters and strings
      • NUMBER

        public static final Cell.CellType NUMBER
        Type for all numeric types (long, integer and float and double)
      • DATE

        public static final Cell.CellType DATE
        Type for dates and times (Note: Dates before 1900-01-01 and after 9999-12-31 are not allowed)
      • TIME

        public static final Cell.CellType TIME
        Type for times (Note: Internally handled as OAdate, represented by LocalTime
      • FORMULA

        public static final Cell.CellType FORMULA
        Type for Formulas (The cell will be handled differently)
      • EMPTY

        public static final Cell.CellType EMPTY
        Type for empty cells. This type is only used for merged cells (all cells except the first of the cell range)
      • DEFAULT

        public static final Cell.CellType DEFAULT
        Default Type, not specified
    • Method Detail

      • values

        public static Cell.CellType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Cell.CellType c : Cell.CellType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Cell.CellType valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null