Enum SimplePriorTime
- java.lang.Object
-
- java.lang.Enum<SimplePriorTime>
-
- cern.nxcals.api.backport.domain.core.snapshot.SimplePriorTime
-
- All Implemented Interfaces:
PriorTime
,java.io.Serializable
,java.lang.Comparable<SimplePriorTime>
public enum SimplePriorTime extends java.lang.Enum<SimplePriorTime> implements 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)
org.joda.time.DateTime
time()
java.lang.String
toString()
static SimplePriorTime
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static SimplePriorTime[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NOW
public static final SimplePriorTime NOW
-
START_OF_HOUR
public static final SimplePriorTime START_OF_HOUR
-
START_OF_DAY
public static final SimplePriorTime START_OF_DAY
-
START_OF_MONTH
public static final SimplePriorTime START_OF_MONTH
-
START_OF_YEAR
public static final SimplePriorTime START_OF_YEAR
-
PREVIOUS_MONDAY
public static final SimplePriorTime PREVIOUS_MONDAY
-
PREVIOUS_TUESDAY
public static final SimplePriorTime PREVIOUS_TUESDAY
-
PREVIOUS_WEDNESDAY
public static final SimplePriorTime PREVIOUS_WEDNESDAY
-
PREVIOUS_THURSDAY
public static final SimplePriorTime PREVIOUS_THURSDAY
-
PREVIOUS_FRIDAY
public static final SimplePriorTime PREVIOUS_FRIDAY
-
PREVIOUS_SATURDAY
public static final SimplePriorTime PREVIOUS_SATURDAY
-
PREVIOUS_SUNDAY
public static final SimplePriorTime PREVIOUS_SUNDAY
-
-
Method Detail
-
values
public static SimplePriorTime[] 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 (SimplePriorTime c : SimplePriorTime.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SimplePriorTime 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()
- Specified by:
description
in interfacePriorTime
-
from
public static PriorTime from(java.lang.String desc)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<SimplePriorTime>
-
-