161847f8eSopenharmony_ci/*
261847f8eSopenharmony_ci * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
361847f8eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
461847f8eSopenharmony_ci * you may not use this file except in compliance with the License.
561847f8eSopenharmony_ci * You may obtain a copy of the License at
661847f8eSopenharmony_ci *
761847f8eSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
861847f8eSopenharmony_ci *
961847f8eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1061847f8eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1161847f8eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1261847f8eSopenharmony_ci * See the License for the specific language governing permissions and
1361847f8eSopenharmony_ci * limitations under the License.
1461847f8eSopenharmony_ci */
1561847f8eSopenharmony_ci
1661847f8eSopenharmony_ci/**
1761847f8eSopenharmony_ci * @file
1861847f8eSopenharmony_ci * @kit ArkTS
1961847f8eSopenharmony_ci */
2061847f8eSopenharmony_ci
2161847f8eSopenharmony_ci/**
2261847f8eSopenharmony_ci * LightWeightMap stores key-value (KV) pairs. Each key must be unique and have only one value.
2361847f8eSopenharmony_ci *
2461847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang
2561847f8eSopenharmony_ci * @since 8
2661847f8eSopenharmony_ci */
2761847f8eSopenharmony_ci/**
2861847f8eSopenharmony_ci * LightWeightMap stores key-value (KV) pairs. Each key must be unique and have only one value.
2961847f8eSopenharmony_ci *
3061847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang
3161847f8eSopenharmony_ci * @crossplatform
3261847f8eSopenharmony_ci * @since 10
3361847f8eSopenharmony_ci */
3461847f8eSopenharmony_ci/**
3561847f8eSopenharmony_ci * LightWeightMap stores key-value (KV) pairs. Each key must be unique and have only one value.
3661847f8eSopenharmony_ci *
3761847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang
3861847f8eSopenharmony_ci * @crossplatform
3961847f8eSopenharmony_ci * @atomicservice
4061847f8eSopenharmony_ci * @since 12
4161847f8eSopenharmony_ci */
4261847f8eSopenharmony_cideclare class LightWeightMap<K, V> {
4361847f8eSopenharmony_ci  /**
4461847f8eSopenharmony_ci   * A constructor used to create a LightWeightMap object.
4561847f8eSopenharmony_ci   *
4661847f8eSopenharmony_ci   * @throws { BusinessError } 10200012 - The LightWeightMap's constructor cannot be directly invoked.
4761847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
4861847f8eSopenharmony_ci   * @since 8
4961847f8eSopenharmony_ci   */
5061847f8eSopenharmony_ci  /**
5161847f8eSopenharmony_ci   * A constructor used to create a LightWeightMap object.
5261847f8eSopenharmony_ci   *
5361847f8eSopenharmony_ci   * @throws { BusinessError } 10200012 - The LightWeightMap's constructor cannot be directly invoked.
5461847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
5561847f8eSopenharmony_ci   * @crossplatform
5661847f8eSopenharmony_ci   * @since 10
5761847f8eSopenharmony_ci   */
5861847f8eSopenharmony_ci  /**
5961847f8eSopenharmony_ci   * A constructor used to create a LightWeightMap object.
6061847f8eSopenharmony_ci   *
6161847f8eSopenharmony_ci   * @throws { BusinessError } 10200012 - The LightWeightMap's constructor cannot be directly invoked.
6261847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
6361847f8eSopenharmony_ci   * @crossplatform
6461847f8eSopenharmony_ci   * @atomicservice
6561847f8eSopenharmony_ci   * @since 12
6661847f8eSopenharmony_ci   */
6761847f8eSopenharmony_ci  constructor();
6861847f8eSopenharmony_ci  /**
6961847f8eSopenharmony_ci   * Gets the element number of the LightWeightMap.
7061847f8eSopenharmony_ci   *
7161847f8eSopenharmony_ci   * @type { number }
7261847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
7361847f8eSopenharmony_ci   * @since 8
7461847f8eSopenharmony_ci   */
7561847f8eSopenharmony_ci  /**
7661847f8eSopenharmony_ci   * Gets the element number of the LightWeightMap.
7761847f8eSopenharmony_ci   *
7861847f8eSopenharmony_ci   * @type { number }
7961847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
8061847f8eSopenharmony_ci   * @crossplatform
8161847f8eSopenharmony_ci   * @since 10
8261847f8eSopenharmony_ci   */
8361847f8eSopenharmony_ci  /**
8461847f8eSopenharmony_ci   * Gets the element number of the LightWeightMap.
8561847f8eSopenharmony_ci   *
8661847f8eSopenharmony_ci   * @type { number }
8761847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
8861847f8eSopenharmony_ci   * @crossplatform
8961847f8eSopenharmony_ci   * @atomicservice
9061847f8eSopenharmony_ci   * @since 12
9161847f8eSopenharmony_ci   */
9261847f8eSopenharmony_ci  length: number;
9361847f8eSopenharmony_ci  /**
9461847f8eSopenharmony_ci   * Returns whether this map has all the object in a specified map
9561847f8eSopenharmony_ci   *
9661847f8eSopenharmony_ci   * @param { LightWeightMap<K, V> } map - map map the Map object to compare
9761847f8eSopenharmony_ci   * @returns { boolean } the boolean type
9861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
9961847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
10061847f8eSopenharmony_ci   * 2.Incorrect parameter types.
10161847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The hasAll method cannot be bound.
10261847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
10361847f8eSopenharmony_ci   * @since 8
10461847f8eSopenharmony_ci   */
10561847f8eSopenharmony_ci  /**
10661847f8eSopenharmony_ci   * Returns whether this map has all the object in a specified map
10761847f8eSopenharmony_ci   *
10861847f8eSopenharmony_ci   * @param { LightWeightMap<K, V> } map - map map the Map object to compare
10961847f8eSopenharmony_ci   * @returns { boolean } the boolean type
11061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
11161847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
11261847f8eSopenharmony_ci   * 2.Incorrect parameter types.
11361847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The hasAll method cannot be bound.
11461847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
11561847f8eSopenharmony_ci   * @crossplatform
11661847f8eSopenharmony_ci   * @since 10
11761847f8eSopenharmony_ci   */
11861847f8eSopenharmony_ci  /**
11961847f8eSopenharmony_ci   * Returns whether this map has all the object in a specified map
12061847f8eSopenharmony_ci   *
12161847f8eSopenharmony_ci   * @param { LightWeightMap<K, V> } map - map map the Map object to compare
12261847f8eSopenharmony_ci   * @returns { boolean } the boolean type
12361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
12461847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
12561847f8eSopenharmony_ci   * 2.Incorrect parameter types.
12661847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The hasAll method cannot be bound.
12761847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
12861847f8eSopenharmony_ci   * @crossplatform
12961847f8eSopenharmony_ci   * @atomicservice
13061847f8eSopenharmony_ci   * @since 12
13161847f8eSopenharmony_ci   */
13261847f8eSopenharmony_ci  hasAll(map: LightWeightMap<K, V>): boolean;
13361847f8eSopenharmony_ci  /**
13461847f8eSopenharmony_ci   * Returns whether a key is contained in this map
13561847f8eSopenharmony_ci   *
13661847f8eSopenharmony_ci   * @param { K } key - key key need to determine whether to include the key
13761847f8eSopenharmony_ci   * @returns { boolean } the boolean type
13861847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The hasKey method cannot be bound.
13961847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
14061847f8eSopenharmony_ci   * @since 8
14161847f8eSopenharmony_ci   */
14261847f8eSopenharmony_ci  /**
14361847f8eSopenharmony_ci   * Returns whether a key is contained in this map
14461847f8eSopenharmony_ci   *
14561847f8eSopenharmony_ci   * @param { K } key - key key need to determine whether to include the key
14661847f8eSopenharmony_ci   * @returns { boolean } the boolean type
14761847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The hasKey method cannot be bound.
14861847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
14961847f8eSopenharmony_ci   * @crossplatform
15061847f8eSopenharmony_ci   * @since 10
15161847f8eSopenharmony_ci   */
15261847f8eSopenharmony_ci  /**
15361847f8eSopenharmony_ci   * Returns whether a key is contained in this map
15461847f8eSopenharmony_ci   *
15561847f8eSopenharmony_ci   * @param { K } key - key key need to determine whether to include the key
15661847f8eSopenharmony_ci   * @returns { boolean } the boolean type
15761847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The hasKey method cannot be bound.
15861847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
15961847f8eSopenharmony_ci   * @crossplatform
16061847f8eSopenharmony_ci   * @atomicservice
16161847f8eSopenharmony_ci   * @since 12
16261847f8eSopenharmony_ci   */
16361847f8eSopenharmony_ci  hasKey(key: K): boolean;
16461847f8eSopenharmony_ci  /**
16561847f8eSopenharmony_ci   * Returns whether a value is contained in this map
16661847f8eSopenharmony_ci   *
16761847f8eSopenharmony_ci   * @param { V } value - value value need to determine whether to include the value
16861847f8eSopenharmony_ci   * @returns { boolean } the boolean type
16961847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The hasValue method cannot be bound.
17061847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
17161847f8eSopenharmony_ci   * @since 8
17261847f8eSopenharmony_ci   */
17361847f8eSopenharmony_ci  /**
17461847f8eSopenharmony_ci   * Returns whether a value is contained in this map
17561847f8eSopenharmony_ci   *
17661847f8eSopenharmony_ci   * @param { V } value - value value need to determine whether to include the value
17761847f8eSopenharmony_ci   * @returns { boolean } the boolean type
17861847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The hasValue method cannot be bound.
17961847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
18061847f8eSopenharmony_ci   * @crossplatform
18161847f8eSopenharmony_ci   * @since 10
18261847f8eSopenharmony_ci   */
18361847f8eSopenharmony_ci  /**
18461847f8eSopenharmony_ci   * Returns whether a value is contained in this map
18561847f8eSopenharmony_ci   *
18661847f8eSopenharmony_ci   * @param { V } value - value value need to determine whether to include the value
18761847f8eSopenharmony_ci   * @returns { boolean } the boolean type
18861847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The hasValue method cannot be bound.
18961847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
19061847f8eSopenharmony_ci   * @crossplatform
19161847f8eSopenharmony_ci   * @atomicservice
19261847f8eSopenharmony_ci   * @since 12
19361847f8eSopenharmony_ci   */
19461847f8eSopenharmony_ci  hasValue(value: V): boolean;
19561847f8eSopenharmony_ci  /**
19661847f8eSopenharmony_ci   * Ensures that the capacity of an LightWeightMap container is greater than or equal to a specified value,
19761847f8eSopenharmony_ci   * and that the container has all the original objects after capacity expansion
19861847f8eSopenharmony_ci   *
19961847f8eSopenharmony_ci   * @param { number } minimumCapacity - minimumCapacity minimumCapacity Minimum capacity to be reserved
20061847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The increaseCapacityTo method cannot be bound.
20161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
20261847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
20361847f8eSopenharmony_ci   * 2.Incorrect parameter types.
20461847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
20561847f8eSopenharmony_ci   * @since 8
20661847f8eSopenharmony_ci   */
20761847f8eSopenharmony_ci  /**
20861847f8eSopenharmony_ci   * Ensures that the capacity of an LightWeightMap container is greater than or equal to a specified value,
20961847f8eSopenharmony_ci   * and that the container has all the original objects after capacity expansion
21061847f8eSopenharmony_ci   *
21161847f8eSopenharmony_ci   * @param { number } minimumCapacity - minimumCapacity minimumCapacity Minimum capacity to be reserved
21261847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The increaseCapacityTo method cannot be bound.
21361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
21461847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
21561847f8eSopenharmony_ci   * 2.Incorrect parameter types.
21661847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
21761847f8eSopenharmony_ci   * @crossplatform
21861847f8eSopenharmony_ci   * @since 10
21961847f8eSopenharmony_ci   */
22061847f8eSopenharmony_ci  /**
22161847f8eSopenharmony_ci   * Ensures that the capacity of an LightWeightMap container is greater than or equal to a specified value,
22261847f8eSopenharmony_ci   * and that the container has all the original objects after capacity expansion
22361847f8eSopenharmony_ci   *
22461847f8eSopenharmony_ci   * @param { number } minimumCapacity - minimumCapacity minimumCapacity Minimum capacity to be reserved
22561847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The increaseCapacityTo method cannot be bound.
22661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
22761847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
22861847f8eSopenharmony_ci   * 2.Incorrect parameter types.
22961847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
23061847f8eSopenharmony_ci   * @crossplatform
23161847f8eSopenharmony_ci   * @atomicservice
23261847f8eSopenharmony_ci   * @since 12
23361847f8eSopenharmony_ci   */
23461847f8eSopenharmony_ci  increaseCapacityTo(minimumCapacity: number): void;
23561847f8eSopenharmony_ci  /**
23661847f8eSopenharmony_ci   * Returns a new Iterator object that contains the [key, value] pairs for each element in the Map object in insertion order
23761847f8eSopenharmony_ci   *
23861847f8eSopenharmony_ci   * @returns { IterableIterator<[K, V]> }
23961847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The entries method cannot be bound.
24061847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
24161847f8eSopenharmony_ci   * @since 8
24261847f8eSopenharmony_ci   */
24361847f8eSopenharmony_ci  /**
24461847f8eSopenharmony_ci   * Returns a new Iterator object that contains the [key, value] pairs for each element in the Map object in insertion order
24561847f8eSopenharmony_ci   *
24661847f8eSopenharmony_ci   * @returns { IterableIterator<[K, V]> }
24761847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The entries method cannot be bound.
24861847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
24961847f8eSopenharmony_ci   * @crossplatform
25061847f8eSopenharmony_ci   * @since 10
25161847f8eSopenharmony_ci   */
25261847f8eSopenharmony_ci  /**
25361847f8eSopenharmony_ci   * Returns a new Iterator object that contains the [key, value] pairs for each element in the Map object in insertion order
25461847f8eSopenharmony_ci   *
25561847f8eSopenharmony_ci   * @returns { IterableIterator<[K, V]> }
25661847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The entries method cannot be bound.
25761847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
25861847f8eSopenharmony_ci   * @crossplatform
25961847f8eSopenharmony_ci   * @atomicservice
26061847f8eSopenharmony_ci   * @since 12
26161847f8eSopenharmony_ci   */
26261847f8eSopenharmony_ci  entries(): IterableIterator<[K, V]>;
26361847f8eSopenharmony_ci  /**
26461847f8eSopenharmony_ci   * Returns the value to which the specified key is mapped, or undefined if this map contains no mapping for the key
26561847f8eSopenharmony_ci   *
26661847f8eSopenharmony_ci   * @param { K } key - key key the index in LightWeightMap
26761847f8eSopenharmony_ci   * @returns { V } value or undefined
26861847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The get method cannot be bound.
26961847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
27061847f8eSopenharmony_ci   * @since 8
27161847f8eSopenharmony_ci   */
27261847f8eSopenharmony_ci  /**
27361847f8eSopenharmony_ci   * Returns the value to which the specified key is mapped, or undefined if this map contains no mapping for the key
27461847f8eSopenharmony_ci   *
27561847f8eSopenharmony_ci   * @param { K } key - key key the index in LightWeightMap
27661847f8eSopenharmony_ci   * @returns { V } value or undefined
27761847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The get method cannot be bound.
27861847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
27961847f8eSopenharmony_ci   * @crossplatform
28061847f8eSopenharmony_ci   * @since 10
28161847f8eSopenharmony_ci   */
28261847f8eSopenharmony_ci  /**
28361847f8eSopenharmony_ci   * Returns the value to which the specified key is mapped, or undefined if this map contains no mapping for the key
28461847f8eSopenharmony_ci   *
28561847f8eSopenharmony_ci   * @param { K } key - key key the index in LightWeightMap
28661847f8eSopenharmony_ci   * @returns { V } value or undefined
28761847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The get method cannot be bound.
28861847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
28961847f8eSopenharmony_ci   * @crossplatform
29061847f8eSopenharmony_ci   * @atomicservice
29161847f8eSopenharmony_ci   * @since 12
29261847f8eSopenharmony_ci   */
29361847f8eSopenharmony_ci  get(key: K): V;
29461847f8eSopenharmony_ci  /**
29561847f8eSopenharmony_ci   * Obtains the index of the key equal to a specified key in an LightWeightMap container
29661847f8eSopenharmony_ci   *
29761847f8eSopenharmony_ci   * @param { K } key - key key Looking for goals
29861847f8eSopenharmony_ci   * @returns { number } Subscript corresponding to target
29961847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The getIndexOfKey method cannot be bound.
30061847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
30161847f8eSopenharmony_ci   * @since 8
30261847f8eSopenharmony_ci   */
30361847f8eSopenharmony_ci  /**
30461847f8eSopenharmony_ci   * Obtains the index of the key equal to a specified key in an LightWeightMap container
30561847f8eSopenharmony_ci   *
30661847f8eSopenharmony_ci   * @param { K } key - key key Looking for goals
30761847f8eSopenharmony_ci   * @returns { number } Subscript corresponding to target
30861847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The getIndexOfKey method cannot be bound.
30961847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
31061847f8eSopenharmony_ci   * @crossplatform
31161847f8eSopenharmony_ci   * @since 10
31261847f8eSopenharmony_ci   */
31361847f8eSopenharmony_ci  /**
31461847f8eSopenharmony_ci   * Obtains the index of the key equal to a specified key in an LightWeightMap container
31561847f8eSopenharmony_ci   *
31661847f8eSopenharmony_ci   * @param { K } key - key key Looking for goals
31761847f8eSopenharmony_ci   * @returns { number } Subscript corresponding to target
31861847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The getIndexOfKey method cannot be bound.
31961847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
32061847f8eSopenharmony_ci   * @crossplatform
32161847f8eSopenharmony_ci   * @atomicservice
32261847f8eSopenharmony_ci   * @since 12
32361847f8eSopenharmony_ci   */
32461847f8eSopenharmony_ci  getIndexOfKey(key: K): number;
32561847f8eSopenharmony_ci  /**
32661847f8eSopenharmony_ci   * Obtains the index of the value equal to a specified value in an LightWeightMap container
32761847f8eSopenharmony_ci   *
32861847f8eSopenharmony_ci   * @param { V } value - value value Looking for goals
32961847f8eSopenharmony_ci   * @returns { number } Subscript corresponding to target
33061847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The getIndexOfValue method cannot be bound.
33161847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
33261847f8eSopenharmony_ci   * @since 8
33361847f8eSopenharmony_ci   */
33461847f8eSopenharmony_ci  /**
33561847f8eSopenharmony_ci   * Obtains the index of the value equal to a specified value in an LightWeightMap container
33661847f8eSopenharmony_ci   *
33761847f8eSopenharmony_ci   * @param { V } value - value value Looking for goals
33861847f8eSopenharmony_ci   * @returns { number } Subscript corresponding to target
33961847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The getIndexOfValue method cannot be bound.
34061847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
34161847f8eSopenharmony_ci   * @crossplatform
34261847f8eSopenharmony_ci   * @since 10
34361847f8eSopenharmony_ci   */
34461847f8eSopenharmony_ci  /**
34561847f8eSopenharmony_ci   * Obtains the index of the value equal to a specified value in an LightWeightMap container
34661847f8eSopenharmony_ci   *
34761847f8eSopenharmony_ci   * @param { V } value - value value Looking for goals
34861847f8eSopenharmony_ci   * @returns { number } Subscript corresponding to target
34961847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The getIndexOfValue method cannot be bound.
35061847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
35161847f8eSopenharmony_ci   * @crossplatform
35261847f8eSopenharmony_ci   * @atomicservice
35361847f8eSopenharmony_ci   * @since 12
35461847f8eSopenharmony_ci   */
35561847f8eSopenharmony_ci  getIndexOfValue(value: V): number;
35661847f8eSopenharmony_ci  /**
35761847f8eSopenharmony_ci   * Returns whether the Map object contains elements
35861847f8eSopenharmony_ci   *
35961847f8eSopenharmony_ci   * @returns { boolean } the boolean type
36061847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The isEmpty method cannot be bound.
36161847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
36261847f8eSopenharmony_ci   * @since 8
36361847f8eSopenharmony_ci   */
36461847f8eSopenharmony_ci  /**
36561847f8eSopenharmony_ci   * Returns whether the Map object contains elements
36661847f8eSopenharmony_ci   *
36761847f8eSopenharmony_ci   * @returns { boolean } the boolean type
36861847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The isEmpty method cannot be bound.
36961847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
37061847f8eSopenharmony_ci   * @crossplatform
37161847f8eSopenharmony_ci   * @since 10
37261847f8eSopenharmony_ci   */
37361847f8eSopenharmony_ci  /**
37461847f8eSopenharmony_ci   * Returns whether the Map object contains elements
37561847f8eSopenharmony_ci   *
37661847f8eSopenharmony_ci   * @returns { boolean } the boolean type
37761847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The isEmpty method cannot be bound.
37861847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
37961847f8eSopenharmony_ci   * @crossplatform
38061847f8eSopenharmony_ci   * @atomicservice
38161847f8eSopenharmony_ci   * @since 12
38261847f8eSopenharmony_ci   */
38361847f8eSopenharmony_ci  isEmpty(): boolean;
38461847f8eSopenharmony_ci  /**
38561847f8eSopenharmony_ci   * Obtains the key at the location identified by index in an LightWeightMap container
38661847f8eSopenharmony_ci   *
38761847f8eSopenharmony_ci   * @param { number } index - index index Target subscript for search
38861847f8eSopenharmony_ci   * @returns { K } the key of key-value pairs
38961847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The getKeyAt method cannot be bound.
39061847f8eSopenharmony_ci   * @throws { BusinessError } 10200001 - The value of index is out of range.
39161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
39261847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
39361847f8eSopenharmony_ci   * 2.Incorrect parameter types;
39461847f8eSopenharmony_ci   * 3.Parameter verification failed.
39561847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
39661847f8eSopenharmony_ci   * @since 8
39761847f8eSopenharmony_ci   */
39861847f8eSopenharmony_ci  /**
39961847f8eSopenharmony_ci   * Obtains the key at the location identified by index in an LightWeightMap container
40061847f8eSopenharmony_ci   *
40161847f8eSopenharmony_ci   * @param { number } index - index index Target subscript for search
40261847f8eSopenharmony_ci   * @returns { K } the key of key-value pairs
40361847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The getKeyAt method cannot be bound.
40461847f8eSopenharmony_ci   * @throws { BusinessError } 10200001 - The value of index is out of range.
40561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
40661847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
40761847f8eSopenharmony_ci   * 2.Incorrect parameter types;
40861847f8eSopenharmony_ci   * 3.Parameter verification failed.
40961847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
41061847f8eSopenharmony_ci   * @crossplatform
41161847f8eSopenharmony_ci   * @since 10
41261847f8eSopenharmony_ci   */
41361847f8eSopenharmony_ci  /**
41461847f8eSopenharmony_ci   * Obtains the key at the location identified by index in an LightWeightMap container
41561847f8eSopenharmony_ci   *
41661847f8eSopenharmony_ci   * @param { number } index - index index Target subscript for search
41761847f8eSopenharmony_ci   * @returns { K } the key of key-value pairs
41861847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The getKeyAt method cannot be bound.
41961847f8eSopenharmony_ci   * @throws { BusinessError } 10200001 - The value of index is out of range.
42061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
42161847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
42261847f8eSopenharmony_ci   * 2.Incorrect parameter types;
42361847f8eSopenharmony_ci   * 3.Parameter verification failed.
42461847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
42561847f8eSopenharmony_ci   * @crossplatform
42661847f8eSopenharmony_ci   * @atomicservice
42761847f8eSopenharmony_ci   * @since 12
42861847f8eSopenharmony_ci   */
42961847f8eSopenharmony_ci  getKeyAt(index: number): K;
43061847f8eSopenharmony_ci  /**
43161847f8eSopenharmony_ci   * Obtains a ES6 iterator that contains all the keys of an LightWeightMap container
43261847f8eSopenharmony_ci   *
43361847f8eSopenharmony_ci   * @returns { IterableIterator<K> }
43461847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The keys method cannot be bound.
43561847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
43661847f8eSopenharmony_ci   * @since 8
43761847f8eSopenharmony_ci   */
43861847f8eSopenharmony_ci  /**
43961847f8eSopenharmony_ci   * Obtains a ES6 iterator that contains all the keys of an LightWeightMap container
44061847f8eSopenharmony_ci   *
44161847f8eSopenharmony_ci   * @returns { IterableIterator<K> }
44261847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The keys method cannot be bound.
44361847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
44461847f8eSopenharmony_ci   * @crossplatform
44561847f8eSopenharmony_ci   * @since 10
44661847f8eSopenharmony_ci   */
44761847f8eSopenharmony_ci  /**
44861847f8eSopenharmony_ci   * Obtains a ES6 iterator that contains all the keys of an LightWeightMap container
44961847f8eSopenharmony_ci   *
45061847f8eSopenharmony_ci   * @returns { IterableIterator<K> }
45161847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The keys method cannot be bound.
45261847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
45361847f8eSopenharmony_ci   * @crossplatform
45461847f8eSopenharmony_ci   * @atomicservice
45561847f8eSopenharmony_ci   * @since 12
45661847f8eSopenharmony_ci   */
45761847f8eSopenharmony_ci  keys(): IterableIterator<K>;
45861847f8eSopenharmony_ci  /**
45961847f8eSopenharmony_ci   * Adds all element groups in one map to another map
46061847f8eSopenharmony_ci   *
46161847f8eSopenharmony_ci   * @param { LightWeightMap<K, V> } map - map map the Map object to add members
46261847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The setAll method cannot be bound.
46361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
46461847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
46561847f8eSopenharmony_ci   * 2.Incorrect parameter types.
46661847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
46761847f8eSopenharmony_ci   * @since 8
46861847f8eSopenharmony_ci   */
46961847f8eSopenharmony_ci  /**
47061847f8eSopenharmony_ci   * Adds all element groups in one map to another map
47161847f8eSopenharmony_ci   *
47261847f8eSopenharmony_ci   * @param { LightWeightMap<K, V> } map - map map the Map object to add members
47361847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The setAll method cannot be bound.
47461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
47561847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
47661847f8eSopenharmony_ci   * 2.Incorrect parameter types.
47761847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
47861847f8eSopenharmony_ci   * @crossplatform
47961847f8eSopenharmony_ci   * @since 10
48061847f8eSopenharmony_ci   */
48161847f8eSopenharmony_ci  /**
48261847f8eSopenharmony_ci   * Adds all element groups in one map to another map
48361847f8eSopenharmony_ci   *
48461847f8eSopenharmony_ci   * @param { LightWeightMap<K, V> } map - map map the Map object to add members
48561847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The setAll method cannot be bound.
48661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
48761847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
48861847f8eSopenharmony_ci   * 2.Incorrect parameter types.
48961847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
49061847f8eSopenharmony_ci   * @crossplatform
49161847f8eSopenharmony_ci   * @atomicservice
49261847f8eSopenharmony_ci   * @since 12
49361847f8eSopenharmony_ci   */
49461847f8eSopenharmony_ci  setAll(map: LightWeightMap<K, V>): void;
49561847f8eSopenharmony_ci  /**
49661847f8eSopenharmony_ci   * Adds or updates a(new) key-value pair with a key and value specified for the Map object
49761847f8eSopenharmony_ci   *
49861847f8eSopenharmony_ci   * @param { K } key - key key Added or updated targets
49961847f8eSopenharmony_ci   * @param { V } value - value  Added or updated value
50061847f8eSopenharmony_ci   * @returns { Object } the map object after set
50161847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The set method cannot be bound.
50261847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
50361847f8eSopenharmony_ci   * @since 8
50461847f8eSopenharmony_ci   */
50561847f8eSopenharmony_ci  /**
50661847f8eSopenharmony_ci   * Adds or updates a(new) key-value pair with a key and value specified for the Map object
50761847f8eSopenharmony_ci   *
50861847f8eSopenharmony_ci   * @param { K } key - key key Added or updated targets
50961847f8eSopenharmony_ci   * @param { V } value - value  Added or updated value
51061847f8eSopenharmony_ci   * @returns { Object } the map object after set
51161847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The set method cannot be bound.
51261847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
51361847f8eSopenharmony_ci   * @crossplatform
51461847f8eSopenharmony_ci   * @since 10
51561847f8eSopenharmony_ci   */
51661847f8eSopenharmony_ci  /**
51761847f8eSopenharmony_ci   * Adds or updates a(new) key-value pair with a key and value specified for the Map object
51861847f8eSopenharmony_ci   *
51961847f8eSopenharmony_ci   * @param { K } key - key key Added or updated targets
52061847f8eSopenharmony_ci   * @param { V } value - value  Added or updated value
52161847f8eSopenharmony_ci   * @returns { Object } the map object after set
52261847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The set method cannot be bound.
52361847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
52461847f8eSopenharmony_ci   * @crossplatform
52561847f8eSopenharmony_ci   * @atomicservice
52661847f8eSopenharmony_ci   * @since 12
52761847f8eSopenharmony_ci   */
52861847f8eSopenharmony_ci  set(key: K, value: V): Object;
52961847f8eSopenharmony_ci  /**
53061847f8eSopenharmony_ci   * Remove the mapping for this key from this map if present
53161847f8eSopenharmony_ci   *
53261847f8eSopenharmony_ci   * @param { K } key - key key Target to be deleted
53361847f8eSopenharmony_ci   * @returns { V } Target mapped value
53461847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The remove method cannot be bound.
53561847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
53661847f8eSopenharmony_ci   * @since 8
53761847f8eSopenharmony_ci   */
53861847f8eSopenharmony_ci  /**
53961847f8eSopenharmony_ci   * Remove the mapping for this key from this map if present
54061847f8eSopenharmony_ci   *
54161847f8eSopenharmony_ci   * @param { K } key - key key Target to be deleted
54261847f8eSopenharmony_ci   * @returns { V } Target mapped value
54361847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The remove method cannot be bound.
54461847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
54561847f8eSopenharmony_ci   * @crossplatform
54661847f8eSopenharmony_ci   * @since 10
54761847f8eSopenharmony_ci   */
54861847f8eSopenharmony_ci  /**
54961847f8eSopenharmony_ci   * Remove the mapping for this key from this map if present
55061847f8eSopenharmony_ci   *
55161847f8eSopenharmony_ci   * @param { K } key - key key Target to be deleted
55261847f8eSopenharmony_ci   * @returns { V } Target mapped value
55361847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The remove method cannot be bound.
55461847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
55561847f8eSopenharmony_ci   * @crossplatform
55661847f8eSopenharmony_ci   * @atomicservice
55761847f8eSopenharmony_ci   * @since 12
55861847f8eSopenharmony_ci   */
55961847f8eSopenharmony_ci  remove(key: K): V;
56061847f8eSopenharmony_ci  /**
56161847f8eSopenharmony_ci   * Deletes a key-value pair at the location identified by index from an LightWeightMap container
56261847f8eSopenharmony_ci   *
56361847f8eSopenharmony_ci   * @param { number } index - index index Target subscript for search
56461847f8eSopenharmony_ci   * @returns { boolean } the boolean type(Is there a delete value)
56561847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The removeAt method cannot be bound.
56661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
56761847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
56861847f8eSopenharmony_ci   * 2.Incorrect parameter types.
56961847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
57061847f8eSopenharmony_ci   * @since 8
57161847f8eSopenharmony_ci   */
57261847f8eSopenharmony_ci  /**
57361847f8eSopenharmony_ci   * Deletes a key-value pair at the location identified by index from an LightWeightMap container
57461847f8eSopenharmony_ci   *
57561847f8eSopenharmony_ci   * @param { number } index - index index Target subscript for search
57661847f8eSopenharmony_ci   * @returns { boolean } the boolean type(Is there a delete value)
57761847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The removeAt method cannot be bound.
57861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
57961847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
58061847f8eSopenharmony_ci   * 2.Incorrect parameter types.
58161847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
58261847f8eSopenharmony_ci   * @crossplatform
58361847f8eSopenharmony_ci   * @since 10
58461847f8eSopenharmony_ci   */
58561847f8eSopenharmony_ci  /**
58661847f8eSopenharmony_ci   * Deletes a key-value pair at the location identified by index from an LightWeightMap container
58761847f8eSopenharmony_ci   *
58861847f8eSopenharmony_ci   * @param { number } index - index index Target subscript for search
58961847f8eSopenharmony_ci   * @returns { boolean } the boolean type(Is there a delete value)
59061847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The removeAt method cannot be bound.
59161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
59261847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
59361847f8eSopenharmony_ci   * 2.Incorrect parameter types.
59461847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
59561847f8eSopenharmony_ci   * @crossplatform
59661847f8eSopenharmony_ci   * @atomicservice
59761847f8eSopenharmony_ci   * @since 12
59861847f8eSopenharmony_ci   */
59961847f8eSopenharmony_ci  removeAt(index: number): boolean;
60061847f8eSopenharmony_ci  /**
60161847f8eSopenharmony_ci   * Removes all of the mapping from this map
60261847f8eSopenharmony_ci   * The map will be empty after this call returns
60361847f8eSopenharmony_ci   *
60461847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The clear method cannot be bound.
60561847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
60661847f8eSopenharmony_ci   * @since 8
60761847f8eSopenharmony_ci   */
60861847f8eSopenharmony_ci  /**
60961847f8eSopenharmony_ci   * Removes all of the mapping from this map
61061847f8eSopenharmony_ci   * The map will be empty after this call returns
61161847f8eSopenharmony_ci   *
61261847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The clear method cannot be bound.
61361847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
61461847f8eSopenharmony_ci   * @crossplatform
61561847f8eSopenharmony_ci   * @since 10
61661847f8eSopenharmony_ci   */
61761847f8eSopenharmony_ci  /**
61861847f8eSopenharmony_ci   * Removes all of the mapping from this map
61961847f8eSopenharmony_ci   * The map will be empty after this call returns
62061847f8eSopenharmony_ci   *
62161847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The clear method cannot be bound.
62261847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
62361847f8eSopenharmony_ci   * @crossplatform
62461847f8eSopenharmony_ci   * @atomicservice
62561847f8eSopenharmony_ci   * @since 12
62661847f8eSopenharmony_ci   */
62761847f8eSopenharmony_ci  clear(): void;
62861847f8eSopenharmony_ci  /**
62961847f8eSopenharmony_ci   * Sets the value identified by index in an LightWeightMap container to a specified value
63061847f8eSopenharmony_ci   *
63161847f8eSopenharmony_ci   * @param { number } index - index index Target subscript for search
63261847f8eSopenharmony_ci   * @param { V } newValue - newValue value Updated the target mapped value
63361847f8eSopenharmony_ci   * @returns { boolean } the boolean type(Is there a value corresponding to the subscript)
63461847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The setValueAt method cannot be bound.
63561847f8eSopenharmony_ci   * @throws { BusinessError } 10200001 - The value of index is out of range.
63661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
63761847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
63861847f8eSopenharmony_ci   * 2.Incorrect parameter types;
63961847f8eSopenharmony_ci   * 3.Parameter verification failed.
64061847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
64161847f8eSopenharmony_ci   * @since 8
64261847f8eSopenharmony_ci   */
64361847f8eSopenharmony_ci  /**
64461847f8eSopenharmony_ci   * Sets the value identified by index in an LightWeightMap container to a specified value
64561847f8eSopenharmony_ci   *
64661847f8eSopenharmony_ci   * @param { number } index - index index Target subscript for search
64761847f8eSopenharmony_ci   * @param { V } newValue - newValue value Updated the target mapped value
64861847f8eSopenharmony_ci   * @returns { boolean } the boolean type(Is there a value corresponding to the subscript)
64961847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The setValueAt method cannot be bound.
65061847f8eSopenharmony_ci   * @throws { BusinessError } 10200001 - The value of index is out of range.
65161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
65261847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
65361847f8eSopenharmony_ci   * 2.Incorrect parameter types;
65461847f8eSopenharmony_ci   * 3.Parameter verification failed.
65561847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
65661847f8eSopenharmony_ci   * @crossplatform
65761847f8eSopenharmony_ci   * @since 10
65861847f8eSopenharmony_ci   */
65961847f8eSopenharmony_ci  /**
66061847f8eSopenharmony_ci   * Sets the value identified by index in an LightWeightMap container to a specified value
66161847f8eSopenharmony_ci   *
66261847f8eSopenharmony_ci   * @param { number } index - index index Target subscript for search
66361847f8eSopenharmony_ci   * @param { V } newValue - newValue value Updated the target mapped value
66461847f8eSopenharmony_ci   * @returns { boolean } the boolean type(Is there a value corresponding to the subscript)
66561847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The setValueAt method cannot be bound.
66661847f8eSopenharmony_ci   * @throws { BusinessError } 10200001 - The value of index is out of range.
66761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
66861847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
66961847f8eSopenharmony_ci   * 2.Incorrect parameter types;
67061847f8eSopenharmony_ci   * 3.Parameter verification failed.
67161847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
67261847f8eSopenharmony_ci   * @crossplatform
67361847f8eSopenharmony_ci   * @atomicservice
67461847f8eSopenharmony_ci   * @since 12
67561847f8eSopenharmony_ci   */
67661847f8eSopenharmony_ci  setValueAt(index: number, newValue: V): boolean;
67761847f8eSopenharmony_ci  /**
67861847f8eSopenharmony_ci   * Executes the given callback function once for each real key in the map.
67961847f8eSopenharmony_ci   * It does not perform functions on deleted keys.
68061847f8eSopenharmony_ci   *
68161847f8eSopenharmony_ci   * @param { function } callbackFn - callbackFn
68261847f8eSopenharmony_ci   * callbackFn (required) A function that accepts up to three arguments.
68361847f8eSopenharmony_ci   * The function to be called for each element.
68461847f8eSopenharmony_ci   * @param { Object } [thisArg] - thisArg
68561847f8eSopenharmony_ci   * thisArg (Optional) The value to be used as this value for when callbackFn is called.
68661847f8eSopenharmony_ci   * If thisArg is omitted, undefined is used as the this value.
68761847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The forEach method cannot be bound.
68861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
68961847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
69061847f8eSopenharmony_ci   * 2.Incorrect parameter types.
69161847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
69261847f8eSopenharmony_ci   * @since 8
69361847f8eSopenharmony_ci   */
69461847f8eSopenharmony_ci  /**
69561847f8eSopenharmony_ci   * Executes the given callback function once for each real key in the map.
69661847f8eSopenharmony_ci   * It does not perform functions on deleted keys.
69761847f8eSopenharmony_ci   *
69861847f8eSopenharmony_ci   * @param { function } callbackFn - callbackFn
69961847f8eSopenharmony_ci   * callbackFn (required) A function that accepts up to three arguments.
70061847f8eSopenharmony_ci   * The function to be called for each element.
70161847f8eSopenharmony_ci   * @param { Object } [thisArg] - thisArg
70261847f8eSopenharmony_ci   * thisArg (Optional) The value to be used as this value for when callbackFn is called.
70361847f8eSopenharmony_ci   * If thisArg is omitted, undefined is used as the this value.
70461847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The forEach method cannot be bound.
70561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
70661847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
70761847f8eSopenharmony_ci   * 2.Incorrect parameter types.
70861847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
70961847f8eSopenharmony_ci   * @crossplatform
71061847f8eSopenharmony_ci   * @since 10
71161847f8eSopenharmony_ci   */
71261847f8eSopenharmony_ci  /**
71361847f8eSopenharmony_ci   * Executes the given callback function once for each real key in the map.
71461847f8eSopenharmony_ci   * It does not perform functions on deleted keys.
71561847f8eSopenharmony_ci   *
71661847f8eSopenharmony_ci   * @param { function } callbackFn - callbackFn
71761847f8eSopenharmony_ci   * callbackFn (required) A function that accepts up to three arguments.
71861847f8eSopenharmony_ci   * The function to be called for each element.
71961847f8eSopenharmony_ci   * @param { Object } [thisArg] - thisArg
72061847f8eSopenharmony_ci   * thisArg (Optional) The value to be used as this value for when callbackFn is called.
72161847f8eSopenharmony_ci   * If thisArg is omitted, undefined is used as the this value.
72261847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The forEach method cannot be bound.
72361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
72461847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
72561847f8eSopenharmony_ci   * 2.Incorrect parameter types.
72661847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
72761847f8eSopenharmony_ci   * @crossplatform
72861847f8eSopenharmony_ci   * @atomicservice
72961847f8eSopenharmony_ci   * @since 12
73061847f8eSopenharmony_ci   */
73161847f8eSopenharmony_ci  forEach(callbackFn: (value?: V, key?: K, map?: LightWeightMap<K, V>) => void, thisArg?: Object): void;
73261847f8eSopenharmony_ci  /**
73361847f8eSopenharmony_ci   * returns an ES6 iterator.Each item of the iterator is a Javascript Object
73461847f8eSopenharmony_ci   *
73561847f8eSopenharmony_ci   * @returns { IterableIterator<[K, V]> }
73661847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
73761847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
73861847f8eSopenharmony_ci   * @since 8
73961847f8eSopenharmony_ci   */
74061847f8eSopenharmony_ci  /**
74161847f8eSopenharmony_ci   * returns an ES6 iterator.Each item of the iterator is a Javascript Object
74261847f8eSopenharmony_ci   *
74361847f8eSopenharmony_ci   * @returns { IterableIterator<[K, V]> }
74461847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
74561847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
74661847f8eSopenharmony_ci   * @crossplatform
74761847f8eSopenharmony_ci   * @since 10
74861847f8eSopenharmony_ci   */
74961847f8eSopenharmony_ci  /**
75061847f8eSopenharmony_ci   * returns an ES6 iterator.Each item of the iterator is a Javascript Object
75161847f8eSopenharmony_ci   *
75261847f8eSopenharmony_ci   * @returns { IterableIterator<[K, V]> }
75361847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
75461847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
75561847f8eSopenharmony_ci   * @crossplatform
75661847f8eSopenharmony_ci   * @atomicservice
75761847f8eSopenharmony_ci   * @since 12
75861847f8eSopenharmony_ci   */
75961847f8eSopenharmony_ci  [Symbol.iterator](): IterableIterator<[K, V]>;
76061847f8eSopenharmony_ci  /**
76161847f8eSopenharmony_ci   * Obtains a string that contains all the keys and values in an LightWeightMap container
76261847f8eSopenharmony_ci   *
76361847f8eSopenharmony_ci   * @returns { String }
76461847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The toString method cannot be bound.
76561847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
76661847f8eSopenharmony_ci   * @since 8
76761847f8eSopenharmony_ci   */
76861847f8eSopenharmony_ci  /**
76961847f8eSopenharmony_ci   * Obtains a string that contains all the keys and values in an LightWeightMap container
77061847f8eSopenharmony_ci   *
77161847f8eSopenharmony_ci   * @returns { String }
77261847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The toString method cannot be bound.
77361847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
77461847f8eSopenharmony_ci   * @crossplatform
77561847f8eSopenharmony_ci   * @since 10
77661847f8eSopenharmony_ci   */
77761847f8eSopenharmony_ci  /**
77861847f8eSopenharmony_ci   * Obtains a string that contains all the keys and values in an LightWeightMap container
77961847f8eSopenharmony_ci   *
78061847f8eSopenharmony_ci   * @returns { String }
78161847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The toString method cannot be bound.
78261847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
78361847f8eSopenharmony_ci   * @crossplatform
78461847f8eSopenharmony_ci   * @atomicservice
78561847f8eSopenharmony_ci   * @since 12
78661847f8eSopenharmony_ci   */
78761847f8eSopenharmony_ci  toString(): String;
78861847f8eSopenharmony_ci  /**
78961847f8eSopenharmony_ci   * Obtains the value identified by index in an LightWeightMap container
79061847f8eSopenharmony_ci   *
79161847f8eSopenharmony_ci   * @param { number } index - index index Target subscript for search
79261847f8eSopenharmony_ci   * @returns { V } the value of key-value pairs
79361847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The getValueAt method cannot be bound.
79461847f8eSopenharmony_ci   * @throws { BusinessError } 10200001 - The value of index is out of range.
79561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
79661847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
79761847f8eSopenharmony_ci   * 2.Incorrect parameter types;
79861847f8eSopenharmony_ci   * 3.Parameter verification failed.
79961847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
80061847f8eSopenharmony_ci   * @since 8
80161847f8eSopenharmony_ci   */
80261847f8eSopenharmony_ci  /**
80361847f8eSopenharmony_ci   * Obtains the value identified by index in an LightWeightMap container
80461847f8eSopenharmony_ci   *
80561847f8eSopenharmony_ci   * @param { number } index - index index Target subscript for search
80661847f8eSopenharmony_ci   * @returns { V } the value of key-value pairs
80761847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The getValueAt method cannot be bound.
80861847f8eSopenharmony_ci   * @throws { BusinessError } 10200001 - The value of index is out of range.
80961847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
81061847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
81161847f8eSopenharmony_ci   * 2.Incorrect parameter types;
81261847f8eSopenharmony_ci   * 3.Parameter verification failed.
81361847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
81461847f8eSopenharmony_ci   * @crossplatform
81561847f8eSopenharmony_ci   * @since 10
81661847f8eSopenharmony_ci   */
81761847f8eSopenharmony_ci  /**
81861847f8eSopenharmony_ci   * Obtains the value identified by index in an LightWeightMap container
81961847f8eSopenharmony_ci   *
82061847f8eSopenharmony_ci   * @param { number } index - index index Target subscript for search
82161847f8eSopenharmony_ci   * @returns { V } the value of key-value pairs
82261847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The getValueAt method cannot be bound.
82361847f8eSopenharmony_ci   * @throws { BusinessError } 10200001 - The value of index is out of range.
82461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
82561847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
82661847f8eSopenharmony_ci   * 2.Incorrect parameter types;
82761847f8eSopenharmony_ci   * 3.Parameter verification failed.
82861847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
82961847f8eSopenharmony_ci   * @crossplatform
83061847f8eSopenharmony_ci   * @atomicservice
83161847f8eSopenharmony_ci   * @since 12
83261847f8eSopenharmony_ci   */
83361847f8eSopenharmony_ci  getValueAt(index: number): V;
83461847f8eSopenharmony_ci  /**
83561847f8eSopenharmony_ci   * Returns an iterator of the values contained in this map
83661847f8eSopenharmony_ci   *
83761847f8eSopenharmony_ci   * @returns { IterableIterator<V> }
83861847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The values method cannot be bound.
83961847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
84061847f8eSopenharmony_ci   * @since 8
84161847f8eSopenharmony_ci   */
84261847f8eSopenharmony_ci  /**
84361847f8eSopenharmony_ci   * Returns an iterator of the values contained in this map
84461847f8eSopenharmony_ci   *
84561847f8eSopenharmony_ci   * @returns { IterableIterator<V> }
84661847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The values method cannot be bound.
84761847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
84861847f8eSopenharmony_ci   * @crossplatform
84961847f8eSopenharmony_ci   * @since 10
85061847f8eSopenharmony_ci   */
85161847f8eSopenharmony_ci  /**
85261847f8eSopenharmony_ci   * Returns an iterator of the values contained in this map
85361847f8eSopenharmony_ci   *
85461847f8eSopenharmony_ci   * @returns { IterableIterator<V> }
85561847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The values method cannot be bound.
85661847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
85761847f8eSopenharmony_ci   * @crossplatform
85861847f8eSopenharmony_ci   * @atomicservice
85961847f8eSopenharmony_ci   * @since 12
86061847f8eSopenharmony_ci   */
86161847f8eSopenharmony_ci  values(): IterableIterator<V>;
86261847f8eSopenharmony_ci}
86361847f8eSopenharmony_ci
86461847f8eSopenharmony_ciexport default LightWeightMap;
865