public enum ScheduleUnit extends Enum<ScheduleUnit>
Enum Constant and Description |
---|
DAYS_OF_MONTH
Day of month.
|
DAYS_OF_WEEK
Day of week.
|
HOURS
Hour.
|
MINUTES
Minute.
|
MONTHS
Month.
|
SECONDS
Second.
|
Modifier and Type | Method and Description |
---|---|
int |
max()
Returns minimum valid value for the unit.
|
int |
min()
Returns minimum valid value for the unit.
|
static ScheduleUnit |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ScheduleUnit[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScheduleUnit MINUTES
public static final ScheduleUnit HOURS
public static final ScheduleUnit DAYS_OF_MONTH
public static final ScheduleUnit MONTHS
public static final ScheduleUnit DAYS_OF_WEEK
public static final ScheduleUnit SECONDS
public static ScheduleUnit[] values()
for (ScheduleUnit c : ScheduleUnit.values()) System.out.println(c);
public static ScheduleUnit valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int min()
public int max()