public static enum ParseQuery.CachePolicy extends Enum<ParseQuery.CachePolicy>
| Enum Constant and Description |
|---|
CACHE_ELSE_NETWORK |
CACHE_ONLY |
CACHE_THEN_NETWORK |
IGNORE_CACHE |
NETWORK_ELSE_CACHE |
NETWORK_ONLY |
| Modifier and Type | Method and Description |
|---|---|
static ParseQuery.CachePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ParseQuery.CachePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ParseQuery.CachePolicy IGNORE_CACHE
public static final ParseQuery.CachePolicy CACHE_ONLY
public static final ParseQuery.CachePolicy NETWORK_ONLY
public static final ParseQuery.CachePolicy CACHE_ELSE_NETWORK
public static final ParseQuery.CachePolicy NETWORK_ELSE_CACHE
public static final ParseQuery.CachePolicy CACHE_THEN_NETWORK
public static ParseQuery.CachePolicy[] values()
for (ParseQuery.CachePolicy c : ParseQuery.CachePolicy.values()) System.out.println(c);
public static ParseQuery.CachePolicy 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 null