Class TypeCache<T>

java.lang.Object
org.ojalgo.type.TypeCache<T>

@Deprecated public abstract class TypeCache<T> extends Object
A supplier that most of the time returns a cached value, and only recomputes it when necessary (periodically).
  • Field Details

    • TIMER

      private static final Timer TIMER
      Deprecated.
    • myCachedObject

      private transient volatile T myCachedObject
      Deprecated.
    • myDirty

      private volatile boolean myDirty
      Deprecated.
  • Constructor Details

    • TypeCache

      public TypeCache(long aPurgeIntervalMeassure, CalendarDateUnit aPurgeIntervalUnit)
      Deprecated.
    • TypeCache

      private TypeCache()
      Deprecated.
  • Method Details

    • 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.