Class LockingLazyVar<T>
java.lang.Object
manifold.util.concurrent.LockingLazyVar<T>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceA simple init interface to make LockingLazyVar's easier to construct. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Tclear()Clears the variable, forcing the next call toget()to re-calculate the value.final voidfinal Tget()protected abstract Tinit()booleanisLoaded()static <Q> LockingLazyVar<Q> make(ReadWriteLock lock, LockingLazyVar.LazyVarInit<Q> init) static <Q> LockingLazyVar<Q> make(LockingLazyVar.LazyVarInit<Q> init) Creates a new LockingLazyVar based on the type of the LazyVarInit passed in.
-
Constructor Details
-
LockingLazyVar
protected LockingLazyVar() -
LockingLazyVar
-
-
Method Details
-
get
- Returns:
- the value of this lazy var, created if necessary
-
set
-
init
-
clear
-
clearNoLock
public final void clearNoLock() -
isLoaded
public boolean isLoaded() -
make
Creates a new LockingLazyVar based on the type of the LazyVarInit passed in. -
make
-