Webcom Android SDK Public API Reference / com.orange.webcom.sdkv2.datasync / Constraint / First

First

class First : Constraint

First limit children: the values of data nodes sent by subscriptions will be limited to the first 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 First(2) constraint will send {a:9, b:8} to notification targets.

Constructors

<init>

First(limit: Int)

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