Enum PriorTime
- java.lang.Object
-
- java.lang.Enum<PriorTime>
-
- cern.nxcals.api.custom.domain.snapshot.PriorTime
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NOW
PREVIOUS_FRIDAY
PREVIOUS_MONDAY
PREVIOUS_SATURDAY
PREVIOUS_SUNDAY
PREVIOUS_THURSDAY
PREVIOUS_TUESDAY
PREVIOUS_WEDNESDAY
START_OF_DAY
START_OF_HOUR
START_OF_MONTH
START_OF_YEAR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
description()
static PriorTime
from(java.lang.String desc)
static java.time.LocalDateTime
getEndTime(java.lang.String priorTime, java.time.LocalDateTime refTime)
java.time.LocalDateTime
time()
java.lang.String
toString()
static PriorTime
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PriorTime[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.java.time.LocalDateTime
withRespectTo(java.time.LocalDateTime refTime)
-
-
-
Enum Constant Detail
-
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 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 namejava.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 classjava.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)
-
-