Package llnl.gnem.core.util
Enum Class Epoch.TimeResolution
- All Implemented Interfaces:
Serializable
,Comparable<Epoch.TimeResolution>
,Constable
- Enclosing class:
- Epoch
For some actions on epochs it is useful to use a time resolution
appropriate for the type of epoch. For example, a site epoch may have a
resolution of a day, while a sensor epoch may have resolution of a
second. When adjusting epoch boundaries, the time resolution can be used
to make the epoch start and end at an appropriate instant, e.g. midnight
for an epoch with a resolution of a day. TimeResolution in the Epoch
class is specified with the enum class TimeResolution which has the
values: ABS, SEC, MIN, HOUR, DAY };
- Author:
- Doug Dodge
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Epoch.TimeResolution
Returns the enum constant of this class with the specified name.static Epoch.TimeResolution[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ABS
-
SEC
-
MIN
-
HOUR
-
DAY
-
-
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
-