Deferred Value
A container for a value that is possibly computed lazily.
Inheritors
Types
A DeferredValue that is directly initialized with a value. Generates a new sequence number when created.
A DeferredValue that is backed by lazy. Generates a new sequence number when created.
A DeferredValue that is the result of applying transform to the value of parent. Inherits the sequence number from parent.
A DeferredValue that is the result of applying transform to the values of all parents. Inherits the highest sequence number of all parents.
A DeferredValue that delegates its value to parent but generates a new sequence number when created.
Properties
The sequence number of this DeferredValue. The sequence number defines the "age" of the value, where a lower sequence number indicates an older value. Sequence numbers are unique for each DeferredValue chain, but are the same for all DeferredValues that are derived from the same source. Use nextSeqNo to generate a new unique sequence number.
The possibly lazily initialized value of this DeferredValue. Retrieving this value will initialize it if it hasn't been initialized yet. Once initialized, the value will not change.
Functions
Compares this DeferredValue with another DeferredValue based on their seqNo. Equivalent to seqNo.compareTo(other.seqNo)
.