Class Dictionary<TKey, TValue>
Constructors
constructor
-
Parameters
Properties
Private keyPicker
Private keys
keys: string[]
Private keysToObjs
Private objects
Accessors
Count
-
Returns number
Items
-
Keys
-
Returns TKey[]
Values
-
Returns TValue[]
length
-
Returns number
Methods
Add
- Add(key: TKey, value: TValue): void
-
Parameters
Returns void
addUpdate
- addUpdate(key: TKey, value: TValue): void
-
Parameters
Returns void
clear
-
Returns void
containsKey
- containsKey(key: string): boolean
- containsKey(key: TKey): boolean
-
Parameters
Returns boolean
-
Parameters
Returns boolean
get
- get(key: string): TValue
- get(key: TKey): TValue
-
Parameters
Returns TValue
-
Parameters
Returns TValue
getStringKeys
- getStringKeys(): string[]
-
Returns string[]
remove
- remove(key: string): boolean
- remove(key: TKey): boolean
-
Parameters
Returns boolean
-
Parameters
Returns boolean
set
- set(key: TKey, value: TValue): void
-
Parameters
Returns void
setEntry
- setEntry(oldKey: string, newKey: TKey): void
- setEntry(oldKey: TKey, newKey: TKey): void
-
Parameters
-
oldKey: string
-
newKey: TKey
Returns void
-
Parameters
-
oldKey: TKey
-
newKey: TKey
Returns void
tryGetValue
- tryGetValue(key: string, outValue: IOutParam<TValue>): boolean
- tryGetValue(key: TKey, outValue: IOutParam<TValue>): boolean
-
Parameters
Returns boolean
-
Parameters
Returns boolean
get number of objects in the dictionary