Hierarchy

Index

Constructors

constructor

  • new Enum(name: string, value?: number): Enum
  • Parameters

    • name: string
    • Default value value: number = null

    Returns Enum

Properties

name

name: string

value

value: number

Methods

compareTo

  • compareTo(value: Enum): number
  • Parameters

    Returns number

toString

  • toString(): string
  • Returns string

Static getName

  • getName(enumType: any, value: number): string
  • Parameters

    • enumType: any
    • value: number

    Returns string

Static getNames

  • getNames(enumType: any): string[]
  • Parameters

    • enumType: any

    Returns string[]

Static getValues

  • getValues(enumType: any): number[]
  • Parameters

    • enumType: any

    Returns number[]

Static parse

  • parse(enumType: any, value: string | number, upperFirstChar?: boolean): number
  • Parameters

    • enumType: any
    • value: string | number
    • Default value upperFirstChar: boolean = true

    Returns number

Generated using TypeDoc