Interface LazyInitializable
public interface LazyInitializable
A 
LazyInitializable is an object that can be initialized lazily.
  Note: the instance field initialized of subclass should be volatile to avoid JVM instructions re-ordering- Since:
- 3.0.0
- 
Method SummaryModifier and TypeMethodDescriptionvoiddoInit()do initializationbooleanCheck if the object is initialized.default voidlazyInit()voidsetInitialized(boolean initialized) Mark the object initialized.
- 
Method Details- 
lazyInitdefault void lazyInit()
- 
doInitvoid doInit()do initialization
- 
isInitializedboolean isInitialized()Check if the object is initialized.- Returns:
- the check result
 
- 
setInitializedvoid setInitialized(boolean initialized) Mark the object initialized.- Parameters:
- initialized- initialized
 
 
-