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