public static enum CalendarUtil.Duration extends java.lang.Enum<CalendarUtil.Duration>
Modifier and Type | Method and Description |
---|---|
static java.util.Date |
getDateAfterDuration(java.util.Date start,
CalendarUtil.Duration duration)
Returns the date representing start time + duration.
|
static CalendarUtil.Duration |
valueOf(java.lang.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(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 nullpublic static java.util.Date getDateAfterDuration(java.util.Date start, CalendarUtil.Duration duration)