Class SimpleLazyValue<T>
java.lang.Object
dev.getelements.elements.sdk.util.SimpleLazyValue<T>
- Type Parameters:
T
-
A value that lazily loads the first time it is fetched. This is not thread safe.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
get()
Gets the value of thisSimpleLazyValue
, computing it if it was not already computed.Gets anOptional
representing thisSimpleLazyValue
.int
hashCode()
toString()
-
Constructor Details
-
SimpleLazyValue
-
-
Method Details
-
get
Description copied from interface:LazyValue
Gets the value of thisSimpleLazyValue
, computing it if it was not already computed. -
getOptional
Description copied from interface:LazyValue
Gets anOptional
representing thisSimpleLazyValue
. If the value was not previously loaded, then this simply returns an empty.- Specified by:
getOptional
in interfaceLazyValue<T>
- Returns:
- the
Optional
representing the value
-
equals
-
hashCode
public int hashCode() -
toString
-