SingleChangeAdapter

class SingleChangeAdapter<D>(data: D)

An adapter that implements the reactive change model for a single element

Parameters

D

the type of data

Constructors

SingleChangeAdapter
Link copied to clipboard
fun <D> SingleChangeAdapter(data: D)
Initializes the adapter with a value, without emitting a change message

Functions

equals
Link copied to clipboard
open operator fun equals(other: Any?): Boolean
get
Link copied to clipboard
fun get(): D
Retrieves the underlying data
getObservable
Link copied to clipboard
fun getObservable(): Observable<ChangeMessage<D>>
Retrieves a reference to the observable used for listening to change messages
hashCode
Link copied to clipboard
open fun hashCode(): Int
toString
Link copied to clipboard
open fun toString(): String
update
Link copied to clipboard
fun update(data: D): Boolean
Updates the adapter with data and emits a change message to surrounding observersThe change snapshot will contain the value that was just updated