JsonPredicate

Class abstracting a JSON predicate. The predicate is contained to the following schema:

:= | | | := { "not": { } } := { "and": [, , …] } := { "or": [, , …] }

:= { , "value": { }} | { "value": {}} := , "key": string | "key": string | := "scope": string | "scope": string, string, …

:= | | | | := "array_contains": | "array_contains": , "index": number := "at_least": number | "at_most": number | "at_least": number, "at_most": number := "equals": number | string | boolean | object | array := "is_present": boolean := "version_matches": version matcher

Types

Link copied to clipboard
class Builder

Builder class.

Link copied to clipboard
object Companion
Link copied to clipboard

Functions

Link copied to clipboard
open override fun apply(value: JsonSerializable): Boolean

Applies the predicate against a value.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toJsonValue(): JsonValue

Returns the objects represented as a JsonValue.