Package aQute.lib.memoize
Class ReferenceMemoizingSupplier<T>
java.lang.Object
aQute.lib.memoize.ReferenceMemoizingSupplier<T>
The object can exist in one of two states:
- cleared which means memoized holds a cleared reference. This is the initial state. The object transitions to this state if the garbage collector clears the reference. From this state, the object transitions to valued when @{code get} is called.
- valued which means memoized holds a reference with a value.
-
Field Details
-
supplier
-
reference
-
memoized
-
-
Constructor Details
-
ReferenceMemoizingSupplier
-
-
Method Details