Interface LazyUnsafeValue<T, E extends Throwable>
- All Superinterfaces:
UnsafeValue<T,E>
- All Known Implementing Classes:
Values.LazyUnsafeValueImpl
Lazily initialized
unsafe value.
Instances of this interface are initialized lazily during the first call to their
value retrieval method. Information about the initialization state
of a LazyUnsafeValue instance is available via isInitialized() method.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanCheck if the lazy value has been initialized already (i.e.Methods inherited from interface UnsafeValue
get
-
Method Details
-
isInitialized
boolean isInitialized()Check if the lazy value has been initialized already (i.e. itsUnsafeValue.get()method has already been called previously) or not.- Returns:
trueif the lazy value has already been initialized,falseotherwise.
-