Interface Factory<T>
- Type Parameters:
T- the type of the value
- All Superinterfaces:
AutoCloseable,Closeable,Reference<T>
- All Known Implementing Classes:
ConcurrentLazyFactory,LazyFactory
-
Method Summary
Methods inherited from interface io.github.cowwoc.pouch10.core.Reference
getValue, isInitialized
-
Method Details
-
close
void close()Disposes the Factory and the value. Subsequent invocations of this method have no effect. Invoking any other method after this one results inIllegalStateExceptionbeing thrown.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-