Class ConstraintMap<K, V>
Constructors
constructor
- new ConstraintMap<K, V>(index?: {}, array?: [K, V][]): ConstraintMap<K, V>
-
Type parameters
Parameters
-
Optional index: {}
-
[id: number]: number | undefined
-
Optional array: [K, V][]
Properties
Readonly array
array: [K, V][]
Readonly index
index: {}
Type declaration
-
[id: number]: number | undefined
Accessors
size
-
Returns number
Methods
clear
-
Returns void
clone
-
delete
-
Parameters
Returns boolean
forEach
- forEach<T>(callback: (key: K, value: V) => void | T): undefined | T
- forEach<T, S>(callback: (key: K, value: V) => void | T, thisArg: S): undefined | T
-
Type parameters
Parameters
-
callback: (key: K, value: V) => void | T
-
- (key: K, value: V): void | T
-
Parameters
Returns void | T
Returns undefined | T
-
Type parameters
Parameters
-
callback: (key: K, value: V) => void | T
-
- (key: K, value: V): void | T
-
Parameters
Returns void | T
-
thisArg: S
Returns undefined | T
get
- get(key: K): undefined | V
-
Parameters
Returns undefined | V
getEntry
- getEntry(k: number): undefined | [K, V]
-
Parameters
Returns undefined | [K, V]
getField
- getField(key: K): undefined | [K, V]
-
Parameters
Returns undefined | [K, V]
has
-
Parameters
Returns boolean
isEmpty
-
Returns boolean
remove
- remove(key: K): undefined | V
-
Parameters
Returns undefined | V
set
- set(key: K, newValue: V): undefined | V
-
Parameters
Returns undefined | V