Enum CellType

    • Enum Constant Detail

      • _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
      • BLANK

        public static final CellType BLANK
        Blank cell type
      • BOOLEAN

        public static final CellType BOOLEAN
        Boolean cell type
    • Method Detail

      • values

        public static 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 (CellType c : 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 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
      • forInt

        @Deprecated
        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

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