StateObject

interface StateObject

Interface implemented by all snapshot aware state objects. Used by this module to maintain the state records of a state object.

Functions

equals
Link copied to clipboard
common
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
common
open fun hashCode(): Int
mergeRecords
Link copied to clipboard
common
open fun mergeRecords(previous: StateRecord, current: StateRecord, applied: StateRecord): StateRecord?
Produce a merged state based on the conflicting state changes.
prependStateRecord
Link copied to clipboard
common
abstract fun prependStateRecord(value: StateRecord)
Add a new state record to the beginning of a list.
toString
Link copied to clipboard
common
open fun toString(): String

Properties

firstStateRecord
Link copied to clipboard
common
abstract val firstStateRecord: StateRecord
The first state record in a linked list of state records.

Inheritors

SnapshotStateList
Link copied to clipboard
SnapshotStateMap
Link copied to clipboard