public static enum CalendarUtil.Duration extends Enum<CalendarUtil.Duration>
Modifier and Type | Method and Description |
---|---|
static Date |
getDateAfterDuration(Date start,
CalendarUtil.Duration duration)
Returns the date representing start time + duration.
|
static CalendarUtil.Duration |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CalendarUtil.Duration[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CalendarUtil.Duration HOURLY
public static final CalendarUtil.Duration DAILY
public static final CalendarUtil.Duration WEEKLY
public static final CalendarUtil.Duration MONTHLY
public static CalendarUtil.Duration[] values()
for (CalendarUtil.Duration c : CalendarUtil.Duration.values()) System.out.println(c);
public static CalendarUtil.Duration 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 static Date getDateAfterDuration(Date start, CalendarUtil.Duration duration)