Constructors
constructor
- new Enum(name: string, value?: number): Enum
-
Parameters
-
name: string
-
Default value value: number = null
Methods
compareTo
- compareTo(value: Enum): number
-
Parameters
Returns number
Static getName
- getName(enumType: any, value: number): string
-
Parameters
-
enumType: any
-
value: number
Returns string
Static getNames
- getNames(enumType: any): string[]
-
Parameters
Returns string[]
Static getValues
- getValues(enumType: any): number[]
-
Parameters
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