Between

class Between(startKey: String, endKey: String) : Constraint

Children between: the values of data nodes sent by subscriptions will be limited to the child nodes of the actual data nodes whose keys are between startKey and endKey (included).

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 Between("a", "abc") constraint will send {a:9} to notification targets.

Constructors

Between
Link copied to clipboard
fun Between(startKey: String, endKey: String)

Properties

endKey
Link copied to clipboard
val endKey: String

Key that is greater than or equals (following the lexicographic order) the key of the last child that can be sent by subscriptions.

startKey
Link copied to clipboard
val startKey: String

Key that is lower than or equals (following the lexicographic order) the key of the first child that can be sent by subscriptions.