public enum CacheType extends java.lang.Enum<CacheType>
Cache
Enum Constant and Description |
---|
CACHE
A cache identity map maintains a fixed number of objects
specified by the application.
|
FULL
Provides full caching and guaranteed identity.
|
HARD_WEAK
Identical to the soft cache weak (SOFT_WEAK) identity map except
that it uses hard references in the sub-cache.
|
NONE
WARNING: Does not preserve object identity and does not cache
objects.
|
SOFT
Similar to the FULL identity map except that the map holds the
objects using soft references.
|
SOFT_WEAK
Similar to the WEAK identity map except that it maintains a
most-frequently-used sub-cache.
|
WEAK
Similar to the FULL identity map except that the map holds the
objects using weak references.
|
Modifier and Type | Method and Description |
---|---|
static CacheType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CacheType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CacheType FULL
public static final CacheType WEAK
public static final CacheType SOFT
public static final CacheType SOFT_WEAK
public static final CacheType HARD_WEAK
public static final CacheType CACHE
public static final CacheType NONE
public static CacheType[] values()
for (CacheType c : CacheType.values()) System.out.println(c);
public static CacheType 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 null