Package aQute.lib.memoize
Class MemoizingSupplier<T>
java.lang.Object
aQute.lib.memoize.MemoizingSupplier<T>
The object can exist in one of two states:
- initial which means
get
has not been called and memoized holds the wrapped supplier. From this state, the object can transition to open. - open which means memoized is the value from the wrapped supplier. This is the terminal state.
-
Field Details
-
initial
private volatile boolean initial -
memoized
-
-
Constructor Details
-
MemoizingSupplier
-
-
Method Details