Enum TimeGranularity
- All Implemented Interfaces:
Serializable
,Comparable<TimeGranularity>
,java.lang.constant.Constable
Defines values for TimeGranularity.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionEnum value daily.Enum value hourly.Enum value microsecond.Enum value monthly.Enum value none.Enum value minutely.Enum value secondly.Enum value weekly.Enum value yearly. -
Method Summary
Modifier and TypeMethodDescriptionstatic TimeGranularity
fromString
(String value) Parses a serialized value to a TimeGranularity instance.toString()
static TimeGranularity
Returns the enum constant of this type with the specified name.static TimeGranularity[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
YEARLY
Enum value yearly. -
MONTHLY
Enum value monthly. -
WEEKLY
Enum value weekly. -
DAILY
Enum value daily. -
HOURLY
Enum value hourly. -
PER_MINUTE
Enum value minutely. -
PER_SECOND
Enum value secondly. -
MICROSECOND
Enum value microsecond. -
NONE
Enum value none.
-
-
Method Details
-
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
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
-
fromString
Parses a serialized value to a TimeGranularity instance.- Parameters:
value
- the serialized value to parse.- Returns:
- the parsed TimeGranularity object, or null if unable to parse.
-
toString
- Overrides:
toString
in classEnum<TimeGranularity>
-