Home
last modified time | relevance | path

Searched refs:HashMap (Results 1 – 25 of 108) sorted by relevance

12345

/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkts/
H A Djs-apis-hashmap.md1 # @ohos.util.HashMap (非线性容器HashMap)
26 ## HashMap section
43 HashMap的构造函数。
60 let hashMap: HashMap<string, number> = new HashMap();
91 const hashMap: HashMap<string, number> = new HashMap();
129 const hashMap: HashMap<string, number> = new HashMap();
168 const hashMap: HashMap<string, number> = new HashMap();
207 const hashMap: HashMap<string, number> = new HashMap();
286 let hashMap: HashMap<string, number> = new HashMap();
324 let hashMap: HashMap<string, number> = new HashMap();
[all …]
/ohos5.0/foundation/ability/idl_tool/test/sa_test/type_map/target_rust/
H A DIFoo.rs.txt58 …func(&self, in_param: &HashMap<bool, bool>, out_param: &HashMap<bool, bool>, inout_param: &HashMap
59 …_test_func(&self, in_param: &HashMap<i8, i8>, out_param: &HashMap<i8, i8>, inout_param: &HashMap<i…
60 …st_func(&self, in_param: &HashMap<i16, i16>, out_param: &HashMap<i16, i16>, inout_param: &HashMap<…
61 …st_func(&self, in_param: &HashMap<i32, i32>, out_param: &HashMap<i32, i32>, inout_param: &HashMap<…
62 …st_func(&self, in_param: &HashMap<i64, i64>, out_param: &HashMap<i64, i64>, inout_param: &HashMap<…
64 …st_func(&self, in_param: &HashMap<f32, f32>, out_param: &HashMap<f32, f32>, inout_param: &HashMap<…
65 …st_func(&self, in_param: &HashMap<f64, f64>, out_param: &HashMap<f64, f64>, inout_param: &HashMap<…
66 …func(&self, in_param: &HashMap<char, char>, out_param: &HashMap<char, char>, inout_param: &HashMap
421 …_test_func(&self, in_param: &HashMap<i8, i8>, out_param: &HashMap<i8, i8>, inout_param: &HashMap<i…
429 …st_func(&self, in_param: &HashMap<i32, i32>, out_param: &HashMap<i32, i32>, inout_param: &HashMap<…
[all …]
/ohos5.0/commonlibrary/ets_utils/js_util_module/container/hashmap/
H A Djs_hashmap.ts17 HashMap: number;
24 fastHashMap = arkPritvate.Load(arkPritvate.HashMap);
77 errorUtil.checkBindError('get', HashMap, this);
80 setAll(map: HashMap<K, V>): void {
83 let memebers: Array<HashMap<K, V>> = [];
90 errorUtil.checkBindError('set', HashMap, this);
99 errorUtil.checkBindError('clear', HashMap, this);
103 errorUtil.checkBindError('keys', HashMap, this);
144 let tagetArray: Array<HashMap<K, V>> = [];
172 Object.freeze(HashMap);
[all …]
/ohos5.0/docs/en/application-dev/reference/apis-arkts/
H A Djs-apis-hashmap.md1 # @ohos.util.HashMap (Nonlinear Container HashMap)
26 ## HashMap section
60 let hashMap: HashMap<string, number> = new HashMap();
91 const hashMap: HashMap<string, number> = new HashMap();
129 const hashMap: HashMap<string, number> = new HashMap();
168 const hashMap: HashMap<string, number> = new HashMap();
207 const hashMap: HashMap<string, number> = new HashMap();
286 let hashMap: HashMap<string, number> = new HashMap();
324 let hashMap: HashMap<string, number> = new HashMap();
352 let hashMap: HashMap<string, number> = new HashMap();
[all …]
/ohos5.0/docs/zh-cn/application-dev/arkts-utils/
H A Dnonlinear-container.md18 ## HashMap section
22 HashMap依据泛型定义,集合中通过key的hash值确定其存储位置,从而快速找到键值对。HashMap的初始容量大小为16,并支持动态扩容,每次扩容大小为原始容量的2倍。HashMap底层基于H…
24 HashMap和[TreeMap](../reference/apis-arkts/js-apis-treemap.md)相比,HashMap依据键的hashCode存取数据,访问速度较快。而Tre…
26 [HashSet](../reference/apis-arkts/js-apis-hashset.md)基于HashMap实现。HashMap的输入参数由key、value两个值组成。在HashS…
28 需要快速存取、删除以及插入键值对数据时,推荐使用HashMap
30 HashMap进行增、删、改、查操作的常用API如下:
75 TreeMap和[HashMap](../reference/apis-arkts/js-apis-hashmap.md)相比,HashMap依据键的hashCode存取数据,访问速度较快。而Tre…
218 // HashMap
219 import { HashMap } from '@kit.ArkTS'; // 导入HashMap模块
221 let hashMap1: HashMap<string, number> = new HashMap();
[all …]
/ohos5.0/base/global/i18n_lite/tools/i18n-dat-tool/src/main/java/ohos/global/i18n/
H A DStringPool.java21 import java.util.HashMap;
38 private HashMap<Integer, Integer> lengthMap = new HashMap<>();
40 private HashMap<Integer, StringItem> offsetMap;
41 private HashMap<Integer, String> int2StrMap = new HashMap<>();
49 public StringPool(HashMap<String, Integer> hashMap, int offset) { in StringPool()
63 offsetMap = new HashMap<>(); in StringPool()
H A DPluralFetcher.java18 import java.util.HashMap;
42 private HashMap<String, String> map;
43 private HashMap<String, String> decimalMap;
60 map = new HashMap<>(); in init()
72 decimalMap = new HashMap<>(); in init()
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/ylong_cloud_extension/src/service_impl/
H A Dcloud_service.rs18 use std::collections::HashMap;
72 dbs: &HashMap<String, Vec<Database>>, in subscribe()
74 ) -> SyncResult<HashMap<String, RelationSet>> { in subscribe()
75 let mut result = HashMap::new(); in subscribe()
89 relations: HashMap::new(), in subscribe()
102 pub fn unsubscribe(&mut self, relations: &HashMap<String, Vec<String>>) -> SyncResult<()> { in unsubscribe()
167 pub(crate) apps: HashMap<String, AppInfo>,
210 pub fn get_app_info(&self) -> &HashMap<String, AppInfo> { in get_app_info()
263 pub(crate) relations: HashMap<String, String>,
271 relations: HashMap<String, String>, in new()
[all …]
H A Dtypes.rs18 use std::collections::HashMap;
104 pub type RawValueBucket = HashMap<String, Value>;
108 let mut map = HashMap::new(); in from()
121 pub(crate) tables: HashMap<String, Table>,
126 let mut tables = HashMap::new(); in from()
156 pub fn new(name: String, alias: String, tables: HashMap<String, Table>) -> Database { in new()
175 pub fn tables(&self) -> &HashMap<String, Table> { in tables()
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_runtime/src/iter/parallel/collections/
H A Dhash_map.rs14 use std::collections::HashMap;
19 par_vec_impl!(HashMap<T, V>, Vec<(T, V)>, into_iter, impl <T, V>);
21 par_vec_impl!(&'a HashMap<T, V>, Vec<(&'a T, &'a V)>, iter, impl <'a, T, V>);
23 par_vec_impl!(&'a mut HashMap<T, V>, Vec<(&'a T, &'a mut V)>, iter_mut, impl <'a, T, V>);
/ohos5.0/docs/zh-cn/release-notes/api-diff/v3.1-Release/
H A Djs-apidiff-compiler-and-runtime.md256 | ohos.util.HashMap | HashMap | keys(): IterableIterator\<K>; | 新增 |
257 | ohos.util.HashMap | HashMap | clear(): void; | 新增 |
258 | ohos.util.HashMap | HashMap | remove(key: K): V; | 新增 |
259 | ohos.util.HashMap | HashMap | set(key: K, value: V): Object; | 新增 |
260 | ohos.util.HashMap | HashMap | setAll(map: HashMap\<K, V>): void; | 新增 |
261 | ohos.util.HashMap | HashMap | get(key: K): V; | 新增 |
262 | ohos.util.HashMap | HashMap | hasValue(value: V): boolean; | 新增 |
263 | ohos.util.HashMap | HashMap | hasKey(key: K): boolean; | 新增 |
264 | ohos.util.HashMap | HashMap | isEmpty(): boolean; | 新增 |
265 | ohos.util.HashMap | HashMap | length: number; | 新增 |
[all …]
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/ylong_cloud_extension/src/c_adapter/
H A Dbasic_rust_types.rs19 use std::collections::HashMap;
66 HashMapValue(Vec<HashMap<String, types::Value>>),
72 U32(HashMap<String, u32>),
73 String(HashMap<String, String>),
74 Value(HashMap<String, types::Value>),
75 Table(HashMap<String, types::Table>),
77 AppInfo(HashMap<String, cloud_service::AppInfo>),
78 VecU32(HashMap<String, Vec<u32>>),
79 VecString(HashMap<String, Vec<String>>),
80 VecDatabase(HashMap<String, Vec<types::Database>>),
[all …]
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/util/c_openssl/verify/
H A Dpinning.rs14 use std::collections::HashMap;
47 pub(crate) pub_keys: HashMap<String, String>,
60 pub_keys: Result<HashMap<String, String>, HttpClientError>,
75 pub_keys: Ok(HashMap::new()), in new()
204 use std::collections::HashMap;
219 let mut map = HashMap::new(); in ut_pubkey_pins_clone()
/ohos5.0/base/request/request/services/src/manage/scheduler/queue/
H A Dmod.rs16 use std::collections::{HashMap, HashSet};
43 download_queue: HashMap<(u64, u32), Arc<RequestTask>>,
44 upload_queue: HashMap<(u64, u32), Arc<RequestTask>>,
45 running_tasks: HashMap<(u64, u32), Option<AbortHandle>>,
61 download_queue: HashMap::new(), in new()
62 upload_queue: HashMap::new(), in new()
65 running_tasks: HashMap::new(), in new()
149 let mut new_queue = HashMap::new(); in reschedule_inner()
/ohos5.0/base/update/updater/services/rust/hash_signed_data/src/
H A Dimg_hash_check.rs17 use std::collections::HashMap;
82 data: HashMap<String, HashMap<Tuple<T>, Vec<u8>>>
182 let mut hash_data_map: HashMap<String, HashMap<Tuple<T>, Vec<u8>>> = HashMap::new(); in load_img_hash_data()
190 let mut single_data: HashMap<Tuple<T>, Vec<u8>> = HashMap::new(); in load_img_hash_data()
/ohos5.0/docs/en/release-notes/api-diff/v3.1-Release/
H A Djs-apidiff-compiler-and-runtime.md256 | ohos.util.HashMap | HashMap | keys(): IterableIterator\<K>; | Added|
257 | ohos.util.HashMap | HashMap | clear(): void; | Added|
258 | ohos.util.HashMap | HashMap | remove(key: K): V; | Added|
259 | ohos.util.HashMap | HashMap | set(key: K, value: V): Object; | Added|
260 | ohos.util.HashMap | HashMap | setAll(map: HashMap\<K, V>): void; | Added|
261 | ohos.util.HashMap | HashMap | get(key: K): V; | Added|
262 | ohos.util.HashMap | HashMap | hasValue(value: V): boolean; | Added|
263 | ohos.util.HashMap | HashMap | hasKey(key: K): boolean; | Added|
264 | ohos.util.HashMap | HashMap | isEmpty(): boolean; | Added|
265 | ohos.util.HashMap | HashMap | length: number; | Added|
[all …]
/ohos5.0/commonlibrary/rust/ylong_runtime/ylong_signal/src/
H A Dsig_map.rs14 use std::collections::HashMap;
24 pub(crate) data: SpinningRwLock<HashMap<c_int, Signal>>,
40 data: SpinningRwLock::new(HashMap::new()), in get_instance()
/ohos5.0/foundation/ability/ability_runtime/services/dialog_ui/ams_system_dialog/entry/src/main/ets/utils/
H A DIntentTypeMapper.ets15 import HashMap from '@ohos.util.HashMap';
24 private intentTypeMapperHash: HashMap<PickerType, IntentTypeMapperFunction> = new HashMap();
/ohos5.0/base/request/request/services/src/service/client/
H A Dmanager.rs14 use std::collections::{hash_map, HashMap};
54 clients: HashMap<u64, (UnboundedSender<ClientEvent>, i32)>,
55 pid_map: HashMap<u32, u64>,
64 clients: HashMap::new(), in init()
65 pid_map: HashMap::new(), in init()
/ohos5.0/docs/zh-cn/application-dev/tools/
H A Dunpacking-tool.md187 | labels | HashMap\<String, String> | 标识多语言应用程序AppJson的标签。 | NA |
188 | descriptions | HashMap\<String, String> | 标识多语言应用程序AppJson的说明。 | NA |
221 | descriptions | HashMap\<String, String> | 标识HAP的说明信息 …
263 | labels | HashMap\<String, String> | 标识多语言下ability对用户显示的名称 | NA …
307 | reasons | HashMap\<String, String> | 当申请的权限为user_grant权限时此字段必填,描述申请权限的原因 | NA |
324 | labels | HashMap\<String, String> | 标识多语言下ShortCut对用户显示的名称 | NA |
438 | descriptions | HashMap\<String, String> | 标识多语言下ability的描述 …
495 | labels | HashMap\<String, String> | 标识多语言应用程序DefPermission的标签 | NA |
496 | descriptions | HashMap\<String, String> | 标识多语言应用程序DefPermission的说明 | NA |
509 | descriptions | HashMap\<String, String> | 标识多语言应用程序DefinePermission的说明 |…
[all …]
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/ylong_cloud_extension/src/ipc_conn/
H A Dmod.rs23 use std::collections::HashMap;
41 hash_map: &HashMap<String, V>, in string_hash_map_raw_write()
55 ) -> IpcResult<HashMap<String, V>> { in string_hash_map_raw_read()
57 let mut hash_map = HashMap::new(); in string_hash_map_raw_read()
/ohos5.0/base/request/request/services/src/task/
H A Dnotify.rs14 use std::collections::HashMap;
56 pub(crate) extras: HashMap<String, String>,
78 extras: HashMap::<String, String>::new(), in new()
/ohos5.0/docs/zh-cn/application-dev/performance/
H A Dhigh-performance-programming.md94 import HashMap from '@ohos.util.HashMap';
95 let myMap= new HashMap();
116 在实际的应用场景中抽离出来如下用例,该接口中使用JS Object来作为容器去处理Map的逻辑,建议使用HashMap来进行处理。
145 import HashMap from '@ohos.util.HashMap';
151 // 此处替换为HashMap作为容器
152 let info= new HashMap();
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http_client/src/util/
H A Dpool.rs17 use std::collections::HashMap;
24 pool: Arc<Mutex<HashMap<K, V>>>,
30 pool: Arc::new(Mutex::new(HashMap::new())), in new()
/ohos5.0/docs/en/application-dev/arkts-utils/
H A Dnonlinear-container.md18 ## HashMap section
22HashMap** uses generics. In a hash map, a key is located based on its hash code. The initial capac…
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) | …
130 Compared with [HashMap](../reference/apis-arkts/js-apis-hashmap.md), which can also store KV pairs,…
218 // HashMap
219 import { HashMap } from '@kit.ArkTS'; // Import the HashMap module.
221 let hashMap1: HashMap<string, number> = new HashMap();
[all …]

12345