Class ConstantReference<T>
java.lang.Object
io.github.cowwoc.pouch10.core.ConstantReference<T>
- Type Parameters:
T- the type of value returned by the reference
- All Implemented Interfaces:
Reference<T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Returns the value.booleanIndicates if the value was initialized.
-
Constructor Details
-
ConstantReference
-
-
Method Details
-
getValue
-
isInitialized
public boolean isInitialized()Description copied from interface:ReferenceIndicates if the value was initialized.A value may get initialized immediately after this method returns
falsebut once it returnstrueit will continue to do so indefinitely.- Specified by:
isInitializedin interfaceReference<T>- Returns:
trueif the value was initialized
-