Package org.apache.poi.ss.format
Enum CellFormatType
- java.lang.Object
-
- java.lang.Enum<CellFormatType>
-
- org.apache.poi.ss.format.CellFormatType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CellFormatType>
public enum CellFormatType extends java.lang.Enum<CellFormatType>
The different kinds of formats that the formatter understands.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CellFormatType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CellFormatType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
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 Detail
-
values
public static CellFormatType[] 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 (CellFormatType c : CellFormatType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CellFormatType 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 namejava.lang.NullPointerException
- if the argument is null
-
-