public enum CalendarInterval extends java.lang.Enum<CalendarInterval>
| Enum Constant and Description |
|---|
DAY |
HOUR |
MINUTE |
MONTH |
QUARTER |
SECOND |
WEEK |
YEAR |
| Modifier and Type | Method and Description |
|---|---|
static CalendarInterval |
fromValue(java.lang.String text) |
java.lang.String |
toString() |
static CalendarInterval |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CalendarInterval[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CalendarInterval SECOND
public static final CalendarInterval MINUTE
public static final CalendarInterval HOUR
public static final CalendarInterval DAY
public static final CalendarInterval WEEK
public static final CalendarInterval MONTH
public static final CalendarInterval QUARTER
public static final CalendarInterval YEAR
public static CalendarInterval[] values()
for (CalendarInterval c : CalendarInterval.values()) System.out.println(c);
public static CalendarInterval 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 java.lang.String toString()
toString in class java.lang.Enum<CalendarInterval>public static CalendarInterval fromValue(java.lang.String text)