public enum TimeOptions extends java.lang.Enum<TimeOptions>
Enum Constant and Description |
---|
day |
hour |
millisecond |
minute |
month |
second |
week |
year |
Modifier and Type | Method and Description |
---|---|
static TimeOptions |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TimeOptions[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TimeOptions millisecond
public static final TimeOptions second
public static final TimeOptions minute
public static final TimeOptions hour
public static final TimeOptions day
public static final TimeOptions week
public static final TimeOptions month
public static final TimeOptions year
public static TimeOptions[] values()
for (TimeOptions c : TimeOptions.values()) System.out.println(c);
public static TimeOptions valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null