com.parse
Enum ParseQuery.CachePolicy

Object
  extended by Enum<ParseQuery.CachePolicy>
      extended by com.parse.ParseQuery.CachePolicy
All Implemented Interfaces:
Serializable, Comparable<ParseQuery.CachePolicy>
Enclosing class:
ParseQuery<T extends ParseObject>

public static enum ParseQuery.CachePolicy
extends Enum<ParseQuery.CachePolicy>


Enum Constant Summary
CACHE_ELSE_NETWORK
           
CACHE_ONLY
           
CACHE_THEN_NETWORK
           
IGNORE_CACHE
           
NETWORK_ELSE_CACHE
           
NETWORK_ONLY
           
 
Method Summary
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.
 
Methods inherited from class Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

IGNORE_CACHE

public static final ParseQuery.CachePolicy IGNORE_CACHE

CACHE_ONLY

public static final ParseQuery.CachePolicy CACHE_ONLY

NETWORK_ONLY

public static final ParseQuery.CachePolicy NETWORK_ONLY

CACHE_ELSE_NETWORK

public static final ParseQuery.CachePolicy CACHE_ELSE_NETWORK

NETWORK_ELSE_CACHE

public static final ParseQuery.CachePolicy NETWORK_ELSE_CACHE

CACHE_THEN_NETWORK

public static final ParseQuery.CachePolicy CACHE_THEN_NETWORK
Method Detail

values

public static ParseQuery.CachePolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ParseQuery.CachePolicy c : ParseQuery.CachePolicy.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ParseQuery.CachePolicy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null