Lines Matching refs:HashMap
4 …enables quick search. There are several types of nonlinear containers: **HashMap**, **HashSet**, *…
10 | HashMap | Stores a set of key-value pairs that have association relationships. The key in the sto…
18 ## HashMap section
20 [HashMap](../reference/apis-arkts/js-apis-hashmap.md) is used to store a set of associated key-valu…
22 …HashMap** uses generics. In a hash map, a key is located based on its hash code. The initial capac…
24 **HashMap** is faster in accessing data than [TreeMap](../reference/apis-arkts/js-apis-treemap.md),…
26 …is-arkts/js-apis-hashset.md) is implemented based on **HashMap**. The input parameter of **HashMap…
28 You are advised to use **HashMap** when you need to quickly access, remove, and insert KV pairs.
30 **HashMap** provides the following Create, Read, Update, and Delete (CRUD) APIs.
39 | Read| forEach(callbackFn: (value?: V, key?: K, map?: HashMap<K, V>) => void, thisArg?: Object) | …
42 | Update| forEach(callbackFn: (value?: V, key?: K, map?: HashMap<K, V>) => void, thisArg?: Object) …
50 …HashMap](../reference/apis-arkts/js-apis-hashmap.md) and processes only the value object. The bott…
75 [HashMap](../reference/apis-arkts/js-apis-hashmap.md) is faster in accessing data than **TreeMap**,…
130 Compared with [HashMap](../reference/apis-arkts/js-apis-hashmap.md), which can also store KV pairs,…
214 Refer to the code snippet below to add, access, and modify elements in **HashMap**, **TreeMap**, **…
218 // HashMap
219 import { HashMap } from '@kit.ArkTS'; // Import the HashMap module.
221 let hashMap1: HashMap<string, number> = new HashMap();
223 let hashMap2: HashMap<number, number> = new HashMap();