Class

DerivedSnapshotState.ResultRecord

Source set: Common
class ResultRecord<T>(snapshotId: SnapshotId) :
        StateRecord(snapshotId), DerivedState.Record<T>

Properties

validSnapshotId

Source set: Common
var validSnapshotId: SnapshotId = SnapshotIdZero

validSnapshotWriteCount

Source set: Common
var validSnapshotWriteCount: Int = 0

dependencies

Source set: Common
override var dependencies: ObjectIntMap<StateObject> = emptyObjectIntMap()

result

Source set: Common
var result: Any? = Unset

resultHash

Source set: Common
var resultHash: Int = 0

currentValue

Source set: Common
override val currentValue: T

Functions

assign

Source set: Common
override fun assign(value: StateRecord)

create

Source set: Common
override fun create(): StateRecord

create

Source set: Common
override fun create(snapshotId: SnapshotId): StateRecord

isValid

Source set: Common
fun isValid(derivedState: DerivedSnapshotState<*>, snapshot: Snapshot): Boolean

readableHash

Source set: Common
fun readableHash(derivedState: DerivedSnapshotState<*>, snapshot: Snapshot): Int

Members

Companion

Source set: Common
companion object

Properties

Unset

Source set: Common
val Unset = Any()
Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: