Package adams.data.conversion
Enum ExtractDateTimeField.DateTimeField
- java.lang.Object
-
- java.lang.Enum<ExtractDateTimeField.DateTimeField>
-
- adams.data.conversion.ExtractDateTimeField.DateTimeField
-
- All Implemented Interfaces:
Serializable
,Comparable<ExtractDateTimeField.DateTimeField>
- Enclosing class:
- ExtractDateTimeField
public static enum ExtractDateTimeField.DateTimeField extends Enum<ExtractDateTimeField.DateTimeField>
The field to extract.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BUSINESS_DAY_INDICATOR
whether it is a business day or not.CUSTOM
other, defined via format string.DAY
day.DAY_OF_MONTH
day of month.DAY_OF_WEEK
day of week (starts sunday).DAY_OF_WEEK_STR_EN
day of week string (english).DAY_OF_WEEK_STR_LOCALE
day of week string (localized).DAY_OF_YEAR
day of year.HOUR
hour.MINUTE
minute.MONTH
month.MSEC
millisecond.SECOND
second.WEEK_OF_MONTH
the week of the month.WEEK_OF_YEAR
the week of the year.YEAR
year.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ExtractDateTimeField.DateTimeField
valueOf(String name)
Returns the enum constant of this type with the specified name.static ExtractDateTimeField.DateTimeField[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
YEAR
public static final ExtractDateTimeField.DateTimeField YEAR
year.
-
MONTH
public static final ExtractDateTimeField.DateTimeField MONTH
month.
-
DAY
public static final ExtractDateTimeField.DateTimeField DAY
day.
-
HOUR
public static final ExtractDateTimeField.DateTimeField HOUR
hour.
-
MINUTE
public static final ExtractDateTimeField.DateTimeField MINUTE
minute.
-
SECOND
public static final ExtractDateTimeField.DateTimeField SECOND
second.
-
MSEC
public static final ExtractDateTimeField.DateTimeField MSEC
millisecond.
-
DAY_OF_YEAR
public static final ExtractDateTimeField.DateTimeField DAY_OF_YEAR
day of year.
-
DAY_OF_MONTH
public static final ExtractDateTimeField.DateTimeField DAY_OF_MONTH
day of month.
-
DAY_OF_WEEK
public static final ExtractDateTimeField.DateTimeField DAY_OF_WEEK
day of week (starts sunday).
-
DAY_OF_WEEK_STR_EN
public static final ExtractDateTimeField.DateTimeField DAY_OF_WEEK_STR_EN
day of week string (english).
-
DAY_OF_WEEK_STR_LOCALE
public static final ExtractDateTimeField.DateTimeField DAY_OF_WEEK_STR_LOCALE
day of week string (localized).
-
WEEK_OF_YEAR
public static final ExtractDateTimeField.DateTimeField WEEK_OF_YEAR
the week of the year.
-
WEEK_OF_MONTH
public static final ExtractDateTimeField.DateTimeField WEEK_OF_MONTH
the week of the month.
-
BUSINESS_DAY_INDICATOR
public static final ExtractDateTimeField.DateTimeField BUSINESS_DAY_INDICATOR
whether it is a business day or not.
-
CUSTOM
public static final ExtractDateTimeField.DateTimeField CUSTOM
other, defined via format string.
-
-
Method Detail
-
values
public static ExtractDateTimeField.DateTimeField[] 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 (ExtractDateTimeField.DateTimeField c : ExtractDateTimeField.DateTimeField.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ExtractDateTimeField.DateTimeField 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
-
-