Dex TypeScript SDK 1.35.0
    Preparing search index...

    Class AttributeMatch<T>

    Describes a scalar Attribute predicate used by Client.waitForAttributeMatch.

    String and boolean Attributes support equality operators. Integer and number Attributes support every operator. A missing Attribute never matches.

    const match = AttributeMatch.greaterThan(3);
    

    Type Parameters

    • T

      Attribute value type.

    Index

    Methods

    • Internal

      Encodes this match for the Client transport.

      Parameters

      • codec: Codec<T>

        Registered Attribute codec.

      Returns EncodedAttributeMatch

      The protocol operator and operand.

    • Creates an equality match.

      Type Parameters

      • T

        Attribute value type.

      Parameters

      • operand: T

        Scalar value to compare.

      Returns AttributeMatch<T>

      A typed equality match.

    • Creates a greater-than match for an integer or finite number Attribute.

      Type Parameters

      • T

        Attribute value type.

      Parameters

      • operand: T

        Numeric value to compare.

      Returns AttributeMatch<T>

      A typed greater-than match.

    • Creates a greater-than-or-equal match for an integer or finite number Attribute.

      Type Parameters

      • T

        Attribute value type.

      Parameters

      • operand: T

        Numeric value to compare.

      Returns AttributeMatch<T>

      A typed greater-than-or-equal match.

    • Creates a less-than match for an integer or finite number Attribute.

      Type Parameters

      • T

        Attribute value type.

      Parameters

      • operand: T

        Numeric value to compare.

      Returns AttributeMatch<T>

      A typed less-than match.

    • Creates a less-than-or-equal match for an integer or finite number Attribute.

      Type Parameters

      • T

        Attribute value type.

      Parameters

      • operand: T

        Numeric value to compare.

      Returns AttributeMatch<T>

      A typed less-than-or-equal match.

    • Creates a not-equal match. A missing Attribute does not match.

      Type Parameters

      • T

        Attribute value type.

      Parameters

      • operand: T

        Scalar value to compare.

      Returns AttributeMatch<T>

      A typed not-equal match.