/ fm / liveswitch / HashExtensions
Class: HashExtensions
fm.liveswitch.HashExtensions
Table of contents
Constructors
Methods
Constructors
constructor
+ new HashExtensions(): HashExtensions
Returns: HashExtensions
Methods
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/HashExtensions.ts:3
add
▸ Static
add<T>(obj
: Hash<string, T>, key
: string, value
: T): T
Type parameters:
Name |
---|
T |
Parameters:
Name | Type |
---|---|
obj |
Hash<string, T> |
key |
string |
value |
T |
Returns: T
Defined in: Generated/TypeScript/fm.liveswitch/HashExtensions.ts:49
clear
▸ Static
clear<T>(obj
: Hash<string, T>): void
Type parameters:
Name |
---|
T |
Parameters:
Name | Type |
---|---|
obj |
Hash<string, T> |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/HashExtensions.ts:60
containsKey
▸ Static
containsKey<T>(obj
: Hash<any, T>, key
: any): boolean
Type parameters:
Name |
---|
T |
Parameters:
Name | Type |
---|---|
obj |
Hash<any, T> |
key |
any |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/HashExtensions.ts:34
containsValue
▸ Static
containsValue<T>(obj
: Hash<string, T>, value
: T): boolean
Type parameters:
Name |
---|
T |
Parameters:
Name | Type |
---|---|
obj |
Hash<string, T> |
value |
T |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/HashExtensions.ts:41
getCount
▸ Static
getCount<T>(obj
: Hash<string, T>): number
Type parameters:
Name |
---|
T |
Parameters:
Name | Type |
---|---|
obj |
Hash<string, T> |
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/HashExtensions.ts:6
getKeys
▸ Static
getKeys<T>(obj
: Hash<string, T>): string[]
Type parameters:
Name |
---|
T |
Parameters:
Name | Type |
---|---|
obj |
Hash<string, T> |
Returns: string[]
Defined in: Generated/TypeScript/fm.liveswitch/HashExtensions.ts:13
getValues
▸ Static
getValues<T>(obj
: Hash<string, T>): T[]
Type parameters:
Name |
---|
T |
Parameters:
Name | Type |
---|---|
obj |
Hash<string, T> |
Returns: T[]
Defined in: Generated/TypeScript/fm.liveswitch/HashExtensions.ts:20
remove
▸ Static
remove<T>(obj
: Hash<string, T>, key
: string): boolean
Type parameters:
Name |
---|
T |
Parameters:
Name | Type |
---|---|
obj |
Hash<string, T> |
key |
string |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/HashExtensions.ts:53
tryGetValue
▸ Static
tryGetValue<T>(obj
: Hash<any, T>, key
: any, holder
: Holder<T>): boolean
Type parameters:
Name |
---|
T |
Parameters:
Name | Type |
---|---|
obj |
Hash<any, T> |
key |
any |
holder |
Holder<T> |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/HashExtensions.ts:27