Package ch.rabanti.picoxlsx4j
Enum Cell.CellType
- java.lang.Object
-
- java.lang.Enum<Cell.CellType>
-
- ch.rabanti.picoxlsx4j.Cell.CellType
-
- All Implemented Interfaces:
Serializable
,Comparable<Cell.CellType>
- Enclosing class:
- Cell
public static enum Cell.CellType extends Enum<Cell.CellType>
Enum defines the basic data types of a cell
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOL
Type for booleanDATE
Type for dates and times (Note: Dates before 1900-01-01 and after 9999-12-31 are not allowed)DEFAULT
Default Type, not specifiedEMPTY
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 stringsTIME
Type for times (Note: Internally handled as OAdate, represented byLocalTime
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Cell.CellType
valueOf(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.
-
-
-
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 byLocalTime
-
BOOL
public static final Cell.CellType BOOL
Type for boolean
-
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 nameNullPointerException
- if the argument is null
-
-