Updater

class Updater<T : Trait>


Trait attribute updater that builds the list of attributes to be updated.

Summary

Public constructors

<T : Trait> Updater()

Public functions

Updater<T>
addUpdate(updaterBlock: Updater<T>.() -> Unit)

Add an attribute update to the list of attributes to be updated.

Map<FieldAny?>

Get the map of attributes to be updated.

Public constructors

Updater

<T : Trait> Updater()

Public functions

addUpdate

fun addUpdate(updaterBlock: Updater<T>.() -> Unit): Updater<T>

Add an attribute update to the list of attributes to be updated.

Parameters
updaterBlock: Updater<T>.() -> Unit

The block of Updater code

getUpdatesMap

fun getUpdatesMap(): Map<FieldAny?>

Get the map of attributes to be updated.

Returns
Map<FieldAny?>

The map of attributes to be updated.

Public properties

attributesToUpdate

val attributesToUpdateMutableList<AttributeToUpdate>