Interface ForgetfulMap.ValueCache<V>
- All Known Implementing Classes:
ForgetfulMap.ValueCacheImpl, TypeCache
- Enclosing class:
ForgetfulMap<K,V>
public static interface ForgetfulMap.ValueCache<V>
The specifications of
TypeCache to allow for another implementation.-
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanIs there currently a value cached for this key?booleanisDirty()voidWill force re-creation of the value the next timegetCachedObject()is called.
-
Method Details
-
flushCache
void flushCache() -
getCachedObject
V getCachedObject() -
isCacheSet
boolean isCacheSet()Is there currently a value cached for this key? -
isDirty
boolean isDirty()- Returns:
- true if
makeDirty()has been called since the last timegetCachedObject()was called.
-
makeDirty
void makeDirty()Will force re-creation of the value the next timegetCachedObject()is called. This method does NOT immediately remove or invalidate the value from the underlying cache.
-