Enum Class Epoch.TimeResolution

java.lang.Object
java.lang.Enum<Epoch.TimeResolution>
llnl.gnem.core.util.Epoch.TimeResolution
All Implemented Interfaces:
Serializable, Comparable<Epoch.TimeResolution>, Constable
Enclosing class:
Epoch

public static enum Epoch.TimeResolution extends Enum<Epoch.TimeResolution>
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
  • Enum Constant Details

  • Method Details

    • values

      public static Epoch.TimeResolution[] 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

      public static Epoch.TimeResolution valueOf(String name)
      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 name
      NullPointerException - if the argument is null