Class Comparator

Represents a filter comparator.

Hierarchy

  • OnmsEnum<number>
    • Comparator

Constructors

  • Parameters

    • id: number

      get the index/id of this enum entry

    • label: string

      get the label of this enum entry

    • Rest...aliases: string[]

    Returns Comparator

Accessors

Methods

  • Whether this comparator matches the given comparator string.

    Parameters

    • comparator: string

    Returns boolean

  • convert this enum to a string suitable for display

    Returns string

  • convert to the JSON representation

    Returns {
        id: number;
        label: string;
    }

    • id: number
    • label: string