Package adams.data.spreadsheet
Enum Cell.ContentType
- java.lang.Object
-
- java.lang.Enum<Cell.ContentType>
-
- adams.data.spreadsheet.Cell.ContentType
-
- All Implemented Interfaces:
EnumWithCustomParsing<Cell.ContentType>
,Serializable
,Comparable<Cell.ContentType>
- Enclosing interface:
- Cell
public static enum Cell.ContentType extends Enum<Cell.ContentType> implements EnumWithCustomParsing<Cell.ContentType>
the type of content.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOLEAN
booleanDATE
date.DATETIME
date+time.DATETIMEMSEC
date+time with msec.DOUBLE
float.LONG
integer.MISSING
missing value.OBJECT
object (needs custom handler, must implement Comparable).STRING
string.TIME
time.TIMEMSEC
time with msec.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getID()
Returns the ID of the enum.Cell.ContentType
parse(String s)
Parses the given string and returns the associated enum.static Cell.ContentType
valueOf(String name)
Returns the enum constant of this type with the specified name.static Cell.ContentType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MISSING
public static final Cell.ContentType MISSING
missing value.
-
STRING
public static final Cell.ContentType STRING
string.
-
BOOLEAN
public static final Cell.ContentType BOOLEAN
boolean
-
LONG
public static final Cell.ContentType LONG
integer.
-
DOUBLE
public static final Cell.ContentType DOUBLE
float.
-
DATE
public static final Cell.ContentType DATE
date.
-
DATETIME
public static final Cell.ContentType DATETIME
date+time.
-
DATETIMEMSEC
public static final Cell.ContentType DATETIMEMSEC
date+time with msec.
-
TIME
public static final Cell.ContentType TIME
time.
-
TIMEMSEC
public static final Cell.ContentType TIMEMSEC
time with msec.
-
OBJECT
public static final Cell.ContentType OBJECT
object (needs custom handler, must implement Comparable).
-
-
Method Detail
-
values
public static Cell.ContentType[] 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.ContentType c : Cell.ContentType.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.ContentType 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
-
getID
public String getID()
Returns the ID of the enum.- Returns:
- the ID
-
parse
public Cell.ContentType parse(String s)
Parses the given string and returns the associated enum.- Specified by:
parse
in interfaceEnumWithCustomParsing<Cell.ContentType>
- Parameters:
s
- the string to parse- Returns:
- the enum or null if failed to parse
-
-