Enum Cell.CellType

    • 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​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null