Enum PriorTime
- java.lang.Object
-
- java.lang.Enum<PriorTime>
-
- cern.nxcals.api.custom.domain.snapshot.PriorTime
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NOWPREVIOUS_FRIDAYPREVIOUS_MONDAYPREVIOUS_SATURDAYPREVIOUS_SUNDAYPREVIOUS_THURSDAYPREVIOUS_TUESDAYPREVIOUS_WEDNESDAYSTART_OF_DAYSTART_OF_HOURSTART_OF_MONTHSTART_OF_YEAR
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringdescription()static PriorTimefrom(java.lang.String desc)static java.time.LocalDateTimegetEndTime(java.lang.String priorTime, java.time.LocalDateTime refTime)java.time.LocalDateTimetime()java.lang.StringtoString()static PriorTimevalueOf(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.LocalDateTimewithRespectTo(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:
toStringin 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)
-
-