- All Implemented Interfaces:
Serializable
,Comparable<TimeUnit>
,Constable
The units of time used in a service, layer or sublayer which support time based operations.
- Since:
- 100.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
-
Enum Constant Details
-
UNKNOWN
Unknown = -1.- Since:
- 100.0.0
-
CENTURIES
Centuries.- Since:
- 100.0.0
-
DAYS
Days.- Since:
- 100.0.0
-
DECADES
Decades.- Since:
- 100.0.0
-
HOURS
Hours.- Since:
- 100.0.0
-
MILLISECONDS
Milliseconds.- Since:
- 100.0.0
-
MINUTES
Minutes.- Since:
- 100.0.0
-
MONTHS
Months.- Since:
- 100.0.0
-
SECONDS
Seconds.- Since:
- 100.0.0
-
WEEKS
Weeks.- Since:
- 100.0.0
-
YEARS
Years.- Since:
- 100.0.0
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-