public enum RefreshPreference extends java.lang.Enum<RefreshPreference>
Enum Constant | Description |
---|---|
RefreshNow |
Immediately refreshes the dataset.
|
RefreshOnNextTimeOfDay |
Refreshes the dataset anytime within the next 24 hours.
|
Modifier and Type | Method | Description |
---|---|---|
static RefreshPreference |
forValue(int value) |
Retrieves the enum constant of the specified value, if exists.
|
int |
getValue() |
Order is important in enums.
|
static RefreshPreference |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static RefreshPreference[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RefreshPreference RefreshNow
public static final RefreshPreference RefreshOnNextTimeOfDay
public static RefreshPreference[] values()
for (RefreshPreference c : RefreshPreference.values()) System.out.println(c);
public static RefreshPreference 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 RefreshPreference forValue(int value)
value
- Enum constant index.public int getValue()