Last

class Last(val limit: Int) : Constraint

Last limit children: the values of data nodes sent by subscriptions will be limited to the last limit child nodes of the actual data nodes.

Child nodes are ordered with respect to their keys in a dedicated lexicographic order. For example, if the actual data node to send is {a:9, b:8, c:7}, the Last(2) constraint will send {b:8,c:7} to notification targets.

Constructors

Link copied to clipboard
fun Last(limit: Int)

Properties

Link copied to clipboard
val limit: Int

Maximum number of children that can be sent by subscriptions, starting from the last one in lexicographic order.