Package org.ojalgo.type
Class TypeCache<T>
- java.lang.Object
-
- org.ojalgo.type.TypeCache<T>
-
@Deprecated public abstract class TypeCache<T> extends java.lang.Object
Deprecated.v56 UseForgetfulMap.newValueCache(Object, java.util.function.Function)
instead.A supplier that most of the time returns a cached value, and only recomputes it when necessary (periodically).
-
-
Field Summary
Fields Modifier and Type Field Description private T
myCachedObject
Deprecated.private boolean
myDirty
Deprecated.private static java.util.Timer
TIMER
Deprecated.
-
Constructor Summary
Constructors Modifier Constructor Description private
TypeCache()
Deprecated.TypeCache(long aPurgeIntervalMeassure, CalendarDateUnit aPurgeIntervalUnit)
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
flushCache()
Deprecated.T
getCachedObject()
Deprecated.boolean
isCacheSet()
Deprecated.boolean
isDirty()
Deprecated.void
makeDirty()
Deprecated.protected abstract T
recreateCache()
Deprecated.
-
-
-
Field Detail
-
TIMER
private static final java.util.Timer TIMER
Deprecated.
-
myCachedObject
private transient volatile T myCachedObject
Deprecated.
-
myDirty
private volatile boolean myDirty
Deprecated.
-
-
Constructor Detail
-
TypeCache
public TypeCache(long aPurgeIntervalMeassure, CalendarDateUnit aPurgeIntervalUnit)
Deprecated.
-
TypeCache
private TypeCache()
Deprecated.
-
-
Method Detail
-
flushCache
public final void flushCache()
Deprecated.
-
getCachedObject
public final T getCachedObject()
Deprecated.
-
isCacheSet
public final boolean isCacheSet()
Deprecated.
-
isDirty
public final boolean isDirty()
Deprecated.
-
makeDirty
public final void makeDirty()
Deprecated.
-
recreateCache
protected abstract T recreateCache()
Deprecated.
-
-