Class LockingLazyVar<T>


  • public abstract class LockingLazyVar<T>
    extends Object
    • Constructor Detail

      • LockingLazyVar

        protected LockingLazyVar()
      • LockingLazyVar

        protected LockingLazyVar​(ReadWriteLock lock)
    • Method Detail

      • get

        public final T get()
        Returns:
        the value of this lazy var, created if necessary
      • set

        public T set​(T value)
      • init

        protected abstract T init()
      • clear

        public final T clear()
        Clears the variable, forcing the next call to get() to re-calculate the value.
      • clearNoLock

        public final void clearNoLock()
      • isLoaded

        public boolean isLoaded()