ObjectFilterCondition

public class ObjectFilterCondition : Codable

An object filter condition is defined by an object property name - object filter expression pair. The filter expression must evaluate to true when applied to the object property’s value for the condition to become true.

Attributes.

Initializers.

  • Creates an instance of ObjectFilterCondition.

    Declaration

    Swift

    public init(property: ObjectFilterProperty, expression: ObjectFilterExpression)

    Parameters

    property

    Defines the format of nested properties used in an ObjectFilterCondition.

    expression

    A filter expression consists of a filter operator and an operator-specific number of filter operands (at most two).

Codable methods.

  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws
  • Declaration

    Swift

    public required init(from decoder: Decoder) throws

Builder methods.

  • Builds a new ObjectFilterCondition using the convenience closure syntax.

    Declaration

    Swift

    public static func build(_ closure: (ObjectFilterConditionBuilder) throws -> ()) throws -> ObjectFilterCondition

    Parameters

    closure

    the builder closure, preferably used as trailing closure.

    Return Value

    ObjectFilterCondition configured using the builder.