Skip to content
This repository was archived by the owner on Aug 11, 2024. It is now read-only.

Latest commit

 

History

History
340 lines (198 loc) · 4.74 KB

HashmapE.md

File metadata and controls

340 lines (198 loc) · 4.74 KB

ton3-core / HashmapE

Class: HashmapE<K, V>

Type parameters

Name Type
K Bit[]
V Cell

Hierarchy

Table of contents

Constructors

Methods

Constructors

constructor

new HashmapE<K, V>(keySize, options?)

Type parameters

Name Type
K Bit[]
V Cell

Parameters

Name Type
keySize number
options? HashmapOptions<K, V>

Overrides

Hashmap.constructor

Methods

[iterator]

[iterator](): IterableIterator<[K, V]>

Returns

IterableIterator<[K, V]>

Inherited from

Hashmap.[iterator]


get

get(key): V

Parameters

Name Type
key K

Returns

V

Inherited from

Hashmap.get


has

has(key): boolean

Parameters

Name Type
key K

Returns

boolean

Inherited from

Hashmap.has


set

set(key, value): HashmapE<K, V>

Parameters

Name Type
key K
value V

Returns

HashmapE<K, V>

Inherited from

Hashmap.set


add

add(key, value): HashmapE<K, V>

Parameters

Name Type
key K
value V

Returns

HashmapE<K, V>

Inherited from

Hashmap.add


replace

replace(key, value): HashmapE<K, V>

Parameters

Name Type
key K
value V

Returns

HashmapE<K, V>

Inherited from

Hashmap.replace


getSet

getSet(key, value): V

Parameters

Name Type
key K
value V

Returns

V

Inherited from

Hashmap.getSet


getAdd

getAdd(key, value): V

Parameters

Name Type
key K
value V

Returns

V

Inherited from

Hashmap.getAdd


getReplace

getReplace(key, value): V

Parameters

Name Type
key K
value V

Returns

V

Inherited from

Hashmap.getReplace


delete

delete(key): HashmapE<K, V>

Parameters

Name Type
key K

Returns

HashmapE<K, V>

Inherited from

Hashmap.delete


isEmpty

isEmpty(): boolean

Returns

boolean

Inherited from

Hashmap.isEmpty


forEach

forEach(callbackfn): void

Parameters

Name Type
callbackfn (key: K, value: V) => void

Returns

void

Inherited from

Hashmap.forEach


cell

cell(): Cell

Returns

Cell

Inherited from

Hashmap.cell


parse

Static parse<K, V>(keySize, slice, options?): HashmapE<K, V>

Type parameters

Name Type
K Bit[]
V Cell

Parameters

Name Type
keySize number
slice Slice
options? HashmapOptions<K, V>

Returns

HashmapE<K, V>

Overrides

Hashmap.parse