public enum ApiCache extends Enum<ApiCache>
| Enum Constant and Description |
|---|
INSTANCE
Singleton enum pattern
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
for unit tests
|
String |
get(ApiCacheKey key) |
void |
put(ApiCacheKey key,
String apiString) |
static ApiCache |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ApiCache[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ApiCache INSTANCE
public static ApiCache[] values()
for (ApiCache c : ApiCache.values()) System.out.println(c);
public static ApiCache 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 nullpublic void put(ApiCacheKey key, String apiString)
public String get(ApiCacheKey key)
public void clear()
Copyright © 2010-2012. All Rights Reserved.