delphirtl • Docs
delphirtl / Dictionary
Dictionary
Dictionary
Map<K, V>• K
• V
new Dictionary<
K,V>(entries?):Dictionary<K,V>
• entries?: null | readonly readonly [K, V][]
Dictionary<K, V>
Map<K, V>.constructor
node_modules/typescript/lib/lib.es2015.collection.d.ts:53
new Dictionary<
K,V>(iterable?):Dictionary<K,V>
• iterable?: null | Iterable<readonly [K, V]>
Dictionary<K, V>
Map<K, V>.constructor
node_modules/typescript/lib/lib.es2015.collection.d.ts:52
readonly[toStringTag]:string
Map.[toStringTag]
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:135
readonlysize:number
the number of elements in the Map.
Map.size
node_modules/typescript/lib/lib.es2015.collection.d.ts:48
readonlystatic[species]:MapConstructor
Map.[species]
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:317
get count():
number
Gets the number of keys and values stored.
number
get Count():
number
Gets the number of keys and values stored.
number
get items():
object
Gets all items
object
get Items():
object
Gets the keys and values stored in the Dictionary
object
[iterator]():
IterableIterator<[K,V]>
Returns an iterable of entries in the map.
IterableIterator<[K, V]>
Map.[iterator]
node_modules/typescript/lib/lib.es2015.iterable.d.ts:121
Add(
key,value):void
Sets the specified value for the given key.
• key: K
• value: V
void
AddOrSetValue(
key,value):void
Sets the specified value for the given key.
• key: K
• value: V
void
clear():
void
void
Map.clear
node_modules/typescript/lib/lib.es2015.collection.d.ts:23
Clear():
void
Clears the dictionary of all data
void
Contains(
key):boolean
Returns true if the dictionary has the specified key, false if not.
• key: K
boolean
ContainsValue(
value):boolean
Returns true if the dictionary contains the given value.
• value: V
boolean
delete(
key):boolean
• key: K
boolean
true if an element in the Map existed and has been removed, or false if the element does not exist.
Map.delete
node_modules/typescript/lib/lib.es2015.collection.d.ts:27
entries():
IterableIterator<[K,V]>
Returns an iterable of key, value pairs for every entry in the map.
IterableIterator<[K, V]>
Map.entries
node_modules/typescript/lib/lib.es2015.iterable.d.ts:126
forEach(
callbackfn,thisArg?):void
Executes a provided function once per each key/value pair in the Map, in insertion order.
• callbackfn
• thisArg?: any
void
Map.forEach
node_modules/typescript/lib/lib.es2015.collection.d.ts:31
get(
key):undefined|V
Returns a specified element from the Map object. If the value that is associated to the provided key is an object, then you will get a reference to that object and any change made to that object will effectively modify it inside the Map.
• key: K
undefined | V
Returns the element associated with the specified key. If no element is associated with the specified key, undefined is returned.
Map.get
node_modules/typescript/lib/lib.es2015.collection.d.ts:36
has(
key):boolean
• key: K
boolean
boolean indicating whether an element with the specified key exists or not.
Map.has
node_modules/typescript/lib/lib.es2015.collection.d.ts:40
keys():
IterableIterator<K>
Returns an iterable of keys in the map
IterableIterator<K>
Map.keys
node_modules/typescript/lib/lib.es2015.iterable.d.ts:131
Remove(
key):void
Removes the given key and its value.
• key: K
void
set(
key,value):this
Adds a new element with a specified key and value to the Map. If an element with the same key already exists, the element will be updated.
• key: K
• value: V
this
Map.set
node_modules/typescript/lib/lib.es2015.collection.d.ts:44
TryAdd(
key,value):boolean
Adds the given key and value
• key: K
• value: V
boolean
TryGetValue(
key):object
Returns a boolean, which, if true, means value has valid information.
• key: K
object
found:
boolean
value:
undefined|V
values():
IterableIterator<V>
Returns an iterable of values in the map
IterableIterator<V>
Map.values
node_modules/typescript/lib/lib.es2015.iterable.d.ts:136