ton3-core / HashmapE
Name | Type |
---|---|
K |
Bit [] |
V |
Cell |
-
Hashmap
<K
,V
>↳
HashmapE
• new HashmapE<K
, V
>(keySize
, options?
)
Name | Type |
---|---|
K |
Bit [] |
V |
Cell |
Name | Type |
---|---|
keySize |
number |
options? |
HashmapOptions <K , V > |
▸ [iterator](): IterableIterator
<[K
, V
]>
IterableIterator
<[K
, V
]>
▸ get(key
): V
Name | Type |
---|---|
key |
K |
V
▸ has(key
): boolean
Name | Type |
---|---|
key |
K |
boolean
▸ set(key
, value
): HashmapE
<K
, V
>
Name | Type |
---|---|
key |
K |
value |
V |
HashmapE
<K
, V
>
▸ add(key
, value
): HashmapE
<K
, V
>
Name | Type |
---|---|
key |
K |
value |
V |
HashmapE
<K
, V
>
▸ replace(key
, value
): HashmapE
<K
, V
>
Name | Type |
---|---|
key |
K |
value |
V |
HashmapE
<K
, V
>
▸ getSet(key
, value
): V
Name | Type |
---|---|
key |
K |
value |
V |
V
▸ getAdd(key
, value
): V
Name | Type |
---|---|
key |
K |
value |
V |
V
▸ getReplace(key
, value
): V
Name | Type |
---|---|
key |
K |
value |
V |
V
▸ delete(key
): HashmapE
<K
, V
>
Name | Type |
---|---|
key |
K |
HashmapE
<K
, V
>
▸ isEmpty(): boolean
boolean
▸ forEach(callbackfn
): void
Name | Type |
---|---|
callbackfn |
(key : K , value : V ) => void |
void
▸ cell(): Cell
▸ Static
parse<K
, V
>(keySize
, slice
, options?
): HashmapE
<K
, V
>
Name | Type |
---|---|
K |
Bit [] |
V |
Cell |
Name | Type |
---|---|
keySize |
number |
slice |
Slice |
options? |
HashmapOptions <K , V > |
HashmapE
<K
, V
>