Package net.vleo.timel.time
Enum CalendarField
- java.lang.Object
-
- java.lang.Enum<CalendarField>
-
- net.vleo.timel.time.CalendarField
-
- All Implemented Interfaces:
Serializable
,Comparable<CalendarField>
,java.lang.constant.Constable
public enum CalendarField extends Enum<CalendarField>
List of known date time fields.- Author:
- Andrea Leofreddi
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DAY_OF_MONTH
DAY_OF_WEEK
DAY_OF_YEAR
HOUR_OF_DAY
MINUTE_OF_DAY
MINUTE_OF_HOUR
MONTH_OF_YEAR
SECOND_OF_DAY
SECOND_OF_MINUTE
WEEK_OF_YEAR
YEAR
-
Method Summary
Modifier and Type Method Description static CalendarField
valueOf(String name)
Returns the enum constant of this type with the specified name.static CalendarField[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SECOND_OF_MINUTE
public static final CalendarField SECOND_OF_MINUTE
-
SECOND_OF_DAY
public static final CalendarField SECOND_OF_DAY
-
MINUTE_OF_HOUR
public static final CalendarField MINUTE_OF_HOUR
-
MINUTE_OF_DAY
public static final CalendarField MINUTE_OF_DAY
-
HOUR_OF_DAY
public static final CalendarField HOUR_OF_DAY
-
DAY_OF_MONTH
public static final CalendarField DAY_OF_MONTH
-
DAY_OF_WEEK
public static final CalendarField DAY_OF_WEEK
-
DAY_OF_YEAR
public static final CalendarField DAY_OF_YEAR
-
WEEK_OF_YEAR
public static final CalendarField WEEK_OF_YEAR
-
MONTH_OF_YEAR
public static final CalendarField MONTH_OF_YEAR
-
YEAR
public static final CalendarField YEAR
-
-
Method Detail
-
values
public static CalendarField[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CalendarField 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
-
-