Condition

data class Condition(val field: String, val operator: Operator, val value: Any = EMPTY_VALUE, val children: List<Condition> = emptyList(), val options: Map<String, Any> = emptyMap()) : RewritableCondition<Condition>

Constructors

Link copied to clipboard
constructor(field: String, operator: Operator, value: Any = EMPTY_VALUE, children: List<Condition> = emptyList(), options: Map<String, Any> = emptyMap())

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

When operator is AND or OR or NOR, children cannot be empty.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val value: Any

Functions

Link copied to clipboard
open override fun appendCondition(append: Condition): Condition
Link copied to clipboard
open fun appendTenantId(tenantId: String): Condition
Link copied to clipboard
Link copied to clipboard
fun <V> valueAs(): V
Link copied to clipboard
open override fun withCondition(newCondition: Condition): Condition