/ fm / liveswitch / InternalConcurrentDictionary
Class: InternalConcurrentDictionary<TKey, TValue>
fm.liveswitch.InternalConcurrentDictionary
Type parameters
| Name |
|---|
TKey |
TValue |
Table of contents
Constructors
Properties
Methods
- addOrUpdate
- clear
- containsKey
- getCount
- getIsEmpty
- getKeys
- getOrAdd
- getTypeString
- getValues
- tryAdd
- tryGetValue
- tryRemove
- tryUpdate
Constructors
constructor
+ new InternalConcurrentDictionary<TKey, TValue>(hashCallback: IFunction1<TKey, string>): InternalConcurrentDictionary<TKey, TValue>
Type parameters:
| Name |
|---|
TKey |
TValue |
Parameters:
| Name | Type |
|---|---|
hashCallback |
IFunction1<TKey, string> |
Returns: InternalConcurrentDictionary<TKey, TValue>
Defined in: Generated/TypeScript/fm.liveswitch/InternalConcurrentDictionary.ts:7
Properties
__dict
• Private __dict: Hash<string, MutablePair<TKey, TValue>>
Defined in: Generated/TypeScript/fm.liveswitch/InternalConcurrentDictionary.ts:6
__hashFunction
• Private __hashFunction: IFunction1<TKey, string>
Defined in: Generated/TypeScript/fm.liveswitch/InternalConcurrentDictionary.ts:7
Methods
addOrUpdate
▸ addOrUpdate(key: TKey, addValue: TValue, updateValueFactory: IFunction2<TKey, TValue, TValue>): TValue
Parameters:
| Name | Type |
|---|---|
key |
TKey |
addValue |
TValue |
updateValueFactory |
IFunction2<TKey, TValue, TValue> |
Returns: TValue
Defined in: Generated/TypeScript/fm.liveswitch/InternalConcurrentDictionary.ts:68
clear
▸ clear(): void
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/InternalConcurrentDictionary.ts:135
containsKey
▸ containsKey(key: TKey): boolean
Parameters:
| Name | Type |
|---|---|
key |
TKey |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/InternalConcurrentDictionary.ts:51
getCount
▸ getCount(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/InternalConcurrentDictionary.ts:47
getIsEmpty
▸ getIsEmpty(): boolean
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/InternalConcurrentDictionary.ts:23
getKeys
▸ getKeys(): TKey[]
Returns: TKey[]
Defined in: Generated/TypeScript/fm.liveswitch/InternalConcurrentDictionary.ts:27
getOrAdd
▸ getOrAdd(key: TKey, valueFactory: IFunction1<TKey, TValue>): TValue
Parameters:
| Name | Type |
|---|---|
key |
TKey |
valueFactory |
IFunction1<TKey, TValue> |
Returns: TValue
Defined in: Generated/TypeScript/fm.liveswitch/InternalConcurrentDictionary.ts:56
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/InternalConcurrentDictionary.ts:3
getValues
▸ getValues(): TValue[]
Returns: TValue[]
Defined in: Generated/TypeScript/fm.liveswitch/InternalConcurrentDictionary.ts:37
tryAdd
▸ tryAdd(key: TKey, value: TValue): boolean
Parameters:
| Name | Type |
|---|---|
key |
TKey |
value |
TValue |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/InternalConcurrentDictionary.ts:82
tryGetValue
▸ tryGetValue(key: TKey, holder: Holder<TValue>): boolean
Parameters:
| Name | Type |
|---|---|
key |
TKey |
holder |
Holder<TValue> |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/InternalConcurrentDictionary.ts:96
tryRemove
▸ tryRemove(key: TKey, value: Holder<TValue>): boolean
Parameters:
| Name | Type |
|---|---|
key |
TKey |
value |
Holder<TValue> |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/InternalConcurrentDictionary.ts:107
tryUpdate
▸ tryUpdate(key: TKey, newValue: TValue, comparisonValue: TValue): boolean
Parameters:
| Name | Type |
|---|---|
key |
TKey |
newValue |
TValue |
comparisonValue |
TValue |
Returns: boolean
Defined in: Generated/TypeScript/fm.liveswitch/InternalConcurrentDictionary.ts:122