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