ChangeMessage

open class ChangeMessage<D>(oldData: D, newData: D, changeType: ChangeType, changeSnapshot: D)

The core class used to construct the messages emitted by change adapters

Parameters

D

the type of data

Constructors

ChangeMessage
Link copied to clipboard
fun <D> ChangeMessage(oldData: D, newData: D, changeType: ChangeType, changeSnapshot: D)
Creates a change message with the specified data, change type, and metadata

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open override fun toString(): String

Properties

changeSnapshot
Link copied to clipboard
val changeSnapshot: D
the change snapshot
changeType
Link copied to clipboard
val changeType: ChangeType
the type of change that occurred
newData
Link copied to clipboard
val newData: D
the updated data
oldData
Link copied to clipboard
val oldData: D
the original data