Enum PriorTime

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<PriorTime>

    public enum PriorTime
    extends java.lang.Enum<PriorTime>
    • Enum Constant Detail

      • 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 Detail

      • values

        public static PriorTime[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (PriorTime c : PriorTime.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static PriorTime valueOf​(java.lang.String name)
        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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • description

        public java.lang.String description()
      • time

        public java.time.LocalDateTime time()
      • from

        public static PriorTime from​(java.lang.String desc)
      • toString

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

        public static java.time.LocalDateTime getEndTime​(java.lang.String priorTime,
                                                         java.time.LocalDateTime refTime)
      • withRespectTo

        public java.time.LocalDateTime withRespectTo​(java.time.LocalDateTime refTime)