Interface LazyValue<T>
-
- All Superinterfaces:
Value<T>
public interface LazyValue<T> extends Value<T>
Lazily initializedvalue.Instances of this interface are initialized lazily during the first call to their
value retrieval method. Information about the initialization state of aLazyValueinstance is available viaisInitialized()method.- Author:
- Marek Potociar
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisInitialized()Check if the lazy value has been initialized already (i.e.
-
-
-
Method Detail
-
isInitialized
boolean isInitialized()
Check if the lazy value has been initialized already (i.e. itsValue.get()method has already been called previously) or not.- Returns:
trueif the lazy value has already been initialized,falseotherwise.
-
-