private class AbstractCachingLabeledEnumResolver.LabeledEnumCache extends CachingMapDecorator<java.lang.Class,java.util.Map<java.lang.Comparable,LabeledEnum>>
Constructor and Description |
---|
AbstractCachingLabeledEnumResolver.LabeledEnumCache() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.Comparable,LabeledEnum> |
create(java.lang.Class key)
Create a value to cache for the given key.
|
protected boolean |
useWeakValue(java.lang.Class key,
java.util.Map<java.lang.Comparable,LabeledEnum> value)
Decide whether to use a weak reference for the value of
the given key-value pair.
|
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, toString, values
public AbstractCachingLabeledEnumResolver.LabeledEnumCache()
protected java.util.Map<java.lang.Comparable,LabeledEnum> create(java.lang.Class key)
CachingMapDecorator
get
if there is no value cached already.create
in class CachingMapDecorator<java.lang.Class,java.util.Map<java.lang.Comparable,LabeledEnum>>
key
- the cache keyCachingMapDecorator.get(Object)
protected boolean useWeakValue(java.lang.Class key, java.util.Map<java.lang.Comparable,LabeledEnum> value)
CachingMapDecorator
useWeakValue
in class CachingMapDecorator<java.lang.Class,java.util.Map<java.lang.Comparable,LabeledEnum>>
key
- the candidate keyvalue
- the candidate valuetrue
in order to use a weak reference;
false
otherwise.