Enum DynamicTimeUnit
- java.lang.Object
-
- java.lang.Enum<DynamicTimeUnit>
-
- cern.nxcals.api.custom.domain.constants.DynamicTimeUnit
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<DynamicTimeUnit>
public enum DynamicTimeUnit extends java.lang.Enum<DynamicTimeUnit>
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DynamicTimeUnit
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static DynamicTimeUnit[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SECONDS
public static final DynamicTimeUnit SECONDS
-
MINUTES
public static final DynamicTimeUnit MINUTES
-
HOURS
public static final DynamicTimeUnit HOURS
-
DAYS
public static final DynamicTimeUnit DAYS
-
WEEKS
public static final DynamicTimeUnit WEEKS
-
MONTHS
public static final DynamicTimeUnit MONTHS
-
YEARS
public static final DynamicTimeUnit YEARS
-
FILLS
public static final DynamicTimeUnit FILLS
-
BEAM_MODES
public static final DynamicTimeUnit BEAM_MODES
-
-
Method Detail
-
values
public static DynamicTimeUnit[] 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 (DynamicTimeUnit c : DynamicTimeUnit.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DynamicTimeUnit 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
-
-