/ fm / liveswitch / Global
Class: Global
fm.liveswitch.Global
Table of contents
Constructors
Methods
- getTypeString
- equals
- toInt
- tryCast
- tryCastArray
- tryCastFloat
- tryCastInt
- tryCastObject
- tryCastString
- xor
Constructors
constructor
+ new Global(): Global
Returns: Global
Methods
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/Global.ts:3
equals
▸ Static
equals(x1
: any, x2
: any): boolean
Parameters:
Name | Type |
---|---|
x1 |
any |
x2 |
any |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Global.ts:48
toInt
▸ Static
toInt(x
: number): number
Parameters:
Name | Type |
---|---|
x |
number |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/Global.ts:42
tryCast
▸ Static
tryCast<T>(x
: any, t
: any): T
Type parameters:
Name |
---|
T |
Parameters:
Name | Type |
---|---|
x |
any |
t |
any |
Returns: T
Defined in: Generated/TypeScript/fm.liveswitch/Global.ts:6
tryCastArray
▸ Static
tryCastArray(x
: any): any[]
Parameters:
Name | Type |
---|---|
x |
any |
Returns: any[]
Defined in: Generated/TypeScript/fm.liveswitch/Global.ts:12
tryCastFloat
▸ Static
tryCastFloat(x
: any): number
Parameters:
Name | Type |
---|---|
x |
any |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/Global.ts:36
tryCastInt
▸ Static
tryCastInt(x
: any): number
Parameters:
Name | Type |
---|---|
x |
any |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/Global.ts:30
tryCastObject
▸ Static
tryCastObject(x
: any): Object
Parameters:
Name | Type |
---|---|
x |
any |
Returns: Object
Defined in: Generated/TypeScript/fm.liveswitch/Global.ts:18
tryCastString
▸ Static
tryCastString(x
: any): string
Parameters:
Name | Type |
---|---|
x |
any |
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/Global.ts:24
xor
▸ Static
xor(x
: boolean, y
: boolean): boolean
Parameters:
Name | Type |
---|---|
x |
boolean |
y |
boolean |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/Global.ts:45