Enum Class PriorTime

java.lang.Object
java.lang.Enum<PriorTime>
cern.nxcals.api.custom.domain.snapshot.PriorTime
All Implemented Interfaces:
Serializable, Comparable<PriorTime>, Constable

public enum PriorTime extends Enum<PriorTime>
  • Enum Constant Details

    • NOW

      public static final PriorTime NOW
    • START_OF_HOUR

      public static final PriorTime START_OF_HOUR
    • START_OF_DAY

      public static final PriorTime START_OF_DAY
    • START_OF_MONTH

      public static final PriorTime START_OF_MONTH
    • START_OF_YEAR

      public static final PriorTime START_OF_YEAR
    • PREVIOUS_MONDAY

      public static final PriorTime PREVIOUS_MONDAY
    • PREVIOUS_TUESDAY

      public static final PriorTime PREVIOUS_TUESDAY
    • PREVIOUS_WEDNESDAY

      public static final PriorTime PREVIOUS_WEDNESDAY
    • PREVIOUS_THURSDAY

      public static final PriorTime PREVIOUS_THURSDAY
    • PREVIOUS_FRIDAY

      public static final PriorTime PREVIOUS_FRIDAY
    • PREVIOUS_SATURDAY

      public static final PriorTime PREVIOUS_SATURDAY
    • PREVIOUS_SUNDAY

      public static final PriorTime PREVIOUS_SUNDAY
  • Method Details

    • values

      public static PriorTime[] 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 PriorTime 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
    • description

      public String description()
    • time

      public LocalDateTime time()
    • from

      public static PriorTime from(String desc)
    • toString

      public String toString()
      Overrides:
      toString in class Enum<PriorTime>
    • getEndTime

      public static LocalDateTime getEndTime(String priorTime, LocalDateTime refTime)
    • withRespectTo

      public LocalDateTime withRespectTo(LocalDateTime refTime)