Package org.apache.logging.log4j.util
Class LazyUtil.PureLazy<T>
java.lang.Object
org.apache.logging.log4j.util.LazyUtil.PureLazy<T>
- Enclosing class:
LazyUtil
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether this lazy value has been initialized.voidSets this lazy value to the provided value.value()Returns the value held by this lazy.
-
Field Details
-
supplier
-
value
-
-
Constructor Details
-
PureLazy
-
-
Method Details
-
value
Description copied from interface:LazyReturns the value held by this lazy. This may cause the value to initialize if it hasn't been already. -
isInitialized
public boolean isInitialized()Description copied from interface:LazyIndicates whether this lazy value has been initialized.- Specified by:
isInitializedin interfaceLazy<T>
-
set
Description copied from interface:LazySets this lazy value to the provided value.
-