API Reference › Globals › OccurrenceMap
# Class: OccurrenceMap
# Hierarchy
Map‹number, number›
↳ OccurrenceMap
# Index
# Properties
# Methods
# Properties
# [Symbol.toStringTag]
• [Symbol.toStringTag]: string
Inherited from OccurrenceMap.[Symbol.toStringTag]
Defined in node_modules/typedoc/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:130
# size
• size: number
Inherited from OccurrenceMap.size
Defined in node_modules/typedoc/node_modules/typescript/lib/lib.es2015.collection.d.ts:28
# Static
Map
▪ Map: MapConstructor
Defined in node_modules/typedoc/node_modules/typescript/lib/lib.es2015.collection.d.ts:36
# Methods
# [Symbol.iterator]
▸ [Symbol.iterator](): IterableIterator‹[number, number]›
Inherited from OccurrenceMap.[Symbol.iterator]
Defined in node_modules/typedoc/node_modules/typescript/lib/lib.es2015.iterable.d.ts:121
Returns an iterable of entries in the map.
Returns: IterableIterator‹[number, number]›
# clear
▸ clear(): void
Inherited from OccurrenceMap.clear
Defined in node_modules/typedoc/node_modules/typescript/lib/lib.es2015.collection.d.ts:22
Returns: void
# delete
▸ delete(key
: number): boolean
Inherited from OccurrenceMap.delete
Defined in node_modules/typedoc/node_modules/typescript/lib/lib.es2015.collection.d.ts:23
Parameters:
Name | Type |
---|---|
key | number |
Returns: boolean
# entries
▸ entries(): IterableIterator‹[number, number]›
Inherited from OccurrenceMap.entries
Defined in node_modules/typedoc/node_modules/typescript/lib/lib.es2015.iterable.d.ts:126
Returns an iterable of key, value pairs for every entry in the map.
Returns: IterableIterator‹[number, number]›
# forEach
▸ forEach(callbackfn
: function, thisArg?
: any): void
Inherited from OccurrenceMap.forEach
Defined in node_modules/typedoc/node_modules/typescript/lib/lib.es2015.collection.d.ts:24
Parameters:
▪ callbackfn: function
▸ (value
: number, key
: number, map
: Map‹number, number›): void
Parameters:
Name | Type |
---|---|
value | number |
key | number |
map | Map‹number, number› |
▪Optional
thisArg: any
Returns: void
# get
▸ get(key
: number): number | undefined
Inherited from OccurrenceMap.get
Defined in node_modules/typedoc/node_modules/typescript/lib/lib.es2015.collection.d.ts:25
Parameters:
Name | Type |
---|---|
key | number |
Returns: number | undefined
# has
▸ has(key
: number): boolean
Inherited from OccurrenceMap.has
Defined in node_modules/typedoc/node_modules/typescript/lib/lib.es2015.collection.d.ts:26
Parameters:
Name | Type |
---|---|
key | number |
Returns: boolean
# keys
▸ keys(): IterableIterator‹number›
Inherited from OccurrenceMap.keys
Defined in node_modules/typedoc/node_modules/typescript/lib/lib.es2015.iterable.d.ts:131
Returns an iterable of keys in the map
Returns: IterableIterator‹number›
# largestValue
▸ largestValue(): number
Defined in packages/common-core/src/view-model/configurator-view-model.ts:760
Returns: number
# set
▸ set(key
: number, value
: number): this
Inherited from OccurrenceMap.set
Defined in node_modules/typedoc/node_modules/typescript/lib/lib.es2015.collection.d.ts:27
Parameters:
Name | Type |
---|---|
key | number |
value | number |
Returns: this
# values
▸ values(): IterableIterator‹number›
Inherited from OccurrenceMap.values
Defined in node_modules/typedoc/node_modules/typescript/lib/lib.es2015.iterable.d.ts:136
Returns an iterable of values in the map
Returns: IterableIterator‹number›