public static enum Maps.CacheMap.Canonicity extends java.lang.Enum<Maps.CacheMap.Canonicity>
In practice, this means that a cache implementing a canonical mapping cannot simply remove an entry to evict it, but must convert it to a weak reference to ensure it is retained as long as the value is referenced from outside the cache.
Enum Constant and Description |
---|
CANONICAL |
NOT_CANONICAL |
Modifier and Type | Method and Description |
---|---|
static Maps.CacheMap.Canonicity |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Maps.CacheMap.Canonicity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Maps.CacheMap.Canonicity CANONICAL
public static final Maps.CacheMap.Canonicity NOT_CANONICAL
public static Maps.CacheMap.Canonicity[] values()
for (Maps.CacheMap.Canonicity c : Maps.CacheMap.Canonicity.values()) System.out.println(c);
public static Maps.CacheMap.Canonicity 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