Class TypeCache<T>
java.lang.Object
org.ojalgo.type.TypeCache<T>
- All Implemented Interfaces:
ForgetfulMap.ValueCache<T>
Deprecated.
A supplier that most of the time returns a cached value, and only recomputes it when necessary
(periodically).
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateDeprecated.TypeCache(long aPurgeIntervalMeassure, CalendarDateUnit aPurgeIntervalUnit) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidDeprecated.final TDeprecated.final booleanDeprecated.Is there currently a value cached for this key?final booleanisDirty()Deprecated.final voidDeprecated.Will force re-creation of the value the next timeForgetfulMap.ValueCache.getCachedObject()is called.protected abstract TDeprecated.
-
Field Details
-
TIMER
Deprecated. -
myCachedObject
Deprecated. -
myDirty
private volatile boolean myDirtyDeprecated.
-
-
Constructor Details
-
TypeCache
Deprecated. -
TypeCache
private TypeCache()Deprecated.
-
-
Method Details
-
flushCache
public final void flushCache()Deprecated.- Specified by:
flushCachein interfaceForgetfulMap.ValueCache<T>
-
getCachedObject
Deprecated.- Specified by:
getCachedObjectin interfaceForgetfulMap.ValueCache<T>
-
isCacheSet
public final boolean isCacheSet()Deprecated.Description copied from interface:ForgetfulMap.ValueCacheIs there currently a value cached for this key?- Specified by:
isCacheSetin interfaceForgetfulMap.ValueCache<T>
-
isDirty
public final boolean isDirty()Deprecated.- Specified by:
isDirtyin interfaceForgetfulMap.ValueCache<T>- Returns:
- true if
ForgetfulMap.ValueCache.makeDirty()has been called since the last timeForgetfulMap.ValueCache.getCachedObject()was called.
-
makeDirty
public final void makeDirty()Deprecated.Description copied from interface:ForgetfulMap.ValueCacheWill force re-creation of the value the next timeForgetfulMap.ValueCache.getCachedObject()is called. This method does NOT immediately remove or invalidate the value from the underlying cache.- Specified by:
makeDirtyin interfaceForgetfulMap.ValueCache<T>
-
recreateCache
Deprecated.
-
ForgetfulMap.newValueCache(Object, java.util.function.Function)instead.