Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Comparator

Represents a filter comparator.

Hierarchy

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new Comparator(id: number, label: string, ...aliases: string[]): Comparator

Properties

Private aliases

aliases: string[] = [] as string[]

Aliases for the command-line.

Accessors

id

  • get id(): T

index

  • get index(): T

label

  • get label(): string

Methods

matches

  • matches(comparator: string): boolean
  • Whether this comparator matches the given comparator string.

    Parameters

    • comparator: string

    Returns boolean

toDisplayString

  • toDisplayString(): string

toJSON

  • toJSON(): object

toString

  • toString(): T

Static find

  • find(comparator: string): any
  • Find the comparator that matches the given comparator string.

    Parameters

    • comparator: string

    Returns any

Generated using TypeDoc