Class: ImmutableMap<K, V>
Type parameters​
Name |
---|
K |
V |
Constructors​
constructor​
• new ImmutableMap<K
, V
>(base?
)
Type parameters​
Name |
---|
K |
V |
Parameters​
Name | Type |
---|---|
base? | ImmutableMap <K , V > |
Defined in​
Accessors​
size​
• get
size(): number
Returns​
number
Defined in​
Methods​
clear​
â–¸ clear(): void
Returns​
void
Defined in​
entries​
â–¸ entries(): IterableIterator
<[K
, V
]>
Returns​
IterableIterator
<[K
, V
]>
Defined in​
get​
â–¸ get(key
): V
Parameters​
Name | Type |
---|---|
key | K |
Returns​
V
Defined in​
has​
â–¸ has(key
): boolean
Parameters​
Name | Type |
---|---|
key | K |
Returns​
boolean
Defined in​
keys​
â–¸ keys(): IterableIterator
<K
>
Returns​
IterableIterator
<K
>
Defined in​
remove​
â–¸ remove(key
): void
Parameters​
Name | Type |
---|---|
key | K |
Returns​
void
Defined in​
removeMany​
â–¸ removeMany(keys
): void
Parameters​
Name | Type |
---|---|
keys | K [] |
Returns​
void
Defined in​
set​
â–¸ set(key
, value
): void
Parameters​
Name | Type |
---|---|
key | K |
value | V |
Returns​
void
Defined in​
setMany​
â–¸ setMany(entries
): void
Parameters​
Name | Type |
---|---|
entries | [K , V ][] |
Returns​
void
Defined in​
values​
â–¸ values(): IterableIterator
<V
>
Returns​
IterableIterator
<V
>