org.codeforamerica.open311.internals.caching
Enum Cache.CacheableOperation

java.lang.Object
  extended by java.lang.Enum<Cache.CacheableOperation>
      extended by org.codeforamerica.open311.internals.caching.Cache.CacheableOperation
All Implemented Interfaces:
Serializable, Comparable<Cache.CacheableOperation>
Enclosing interface:
Cache

public static enum Cache.CacheableOperation
extends Enum<Cache.CacheableOperation>

Set of operations which will be cached.

Author:
Santiago MunĂ­n

Enum Constant Summary
GET_CITIES_SERVICE_DISCOVERY_URLS
           
GET_SERVICE_DEFINITION
           
GET_SERVICE_DISCOVERY
           
GET_SERVICE_LIST
           
GET_SERVICE_REQUEST_LIST
           
GET_SINGLE_SERVICE_REQUEST
           
 
Method Summary
static Cache.CacheableOperation valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Cache.CacheableOperation[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

GET_SERVICE_DISCOVERY

public static final Cache.CacheableOperation GET_SERVICE_DISCOVERY

GET_SERVICE_LIST

public static final Cache.CacheableOperation GET_SERVICE_LIST

GET_SERVICE_DEFINITION

public static final Cache.CacheableOperation GET_SERVICE_DEFINITION

GET_SERVICE_REQUEST_LIST

public static final Cache.CacheableOperation GET_SERVICE_REQUEST_LIST

GET_SINGLE_SERVICE_REQUEST

public static final Cache.CacheableOperation GET_SINGLE_SERVICE_REQUEST

GET_CITIES_SERVICE_DISCOVERY_URLS

public static final Cache.CacheableOperation GET_CITIES_SERVICE_DISCOVERY_URLS
Method Detail

values

public static Cache.CacheableOperation[] 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 (Cache.CacheableOperation c : Cache.CacheableOperation.values())
    System.out.println(c);

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

valueOf

public static Cache.CacheableOperation 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


Copyright © 2013 Code for America. All Rights Reserved.