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 * PlainArray stores key-value (KV) pairs. Each key must be unique, be of the number type, and have only one value. 2361847f8eSopenharmony_ci * PlainArray is based on generics and uses a lightweight structure. 2461847f8eSopenharmony_ci * 2561847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 2661847f8eSopenharmony_ci * @since 8 2761847f8eSopenharmony_ci */ 2861847f8eSopenharmony_ci/** 2961847f8eSopenharmony_ci * PlainArray stores key-value (KV) pairs. Each key must be unique, be of the number type, and have only one value. 3061847f8eSopenharmony_ci * PlainArray is based on generics and uses a lightweight structure. 3161847f8eSopenharmony_ci * 3261847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 3361847f8eSopenharmony_ci * @crossplatform 3461847f8eSopenharmony_ci * @since 10 3561847f8eSopenharmony_ci */ 3661847f8eSopenharmony_ci/** 3761847f8eSopenharmony_ci * PlainArray stores key-value (KV) pairs. Each key must be unique, be of the number type, and have only one value. 3861847f8eSopenharmony_ci * PlainArray is based on generics and uses a lightweight structure. 3961847f8eSopenharmony_ci * 4061847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 4161847f8eSopenharmony_ci * @crossplatform 4261847f8eSopenharmony_ci * @atomicservice 4361847f8eSopenharmony_ci * @since 12 4461847f8eSopenharmony_ci */ 4561847f8eSopenharmony_cideclare class PlainArray<T> { 4661847f8eSopenharmony_ci /** 4761847f8eSopenharmony_ci * A constructor used to create a PlainArray object. 4861847f8eSopenharmony_ci * 4961847f8eSopenharmony_ci * @throws { BusinessError } 10200012 - The PlainArray's constructor cannot be directly invoked. 5061847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 5161847f8eSopenharmony_ci * @since 8 5261847f8eSopenharmony_ci */ 5361847f8eSopenharmony_ci /** 5461847f8eSopenharmony_ci * A constructor used to create a PlainArray object. 5561847f8eSopenharmony_ci * 5661847f8eSopenharmony_ci * @throws { BusinessError } 10200012 - The PlainArray's constructor cannot be directly invoked. 5761847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 5861847f8eSopenharmony_ci * @crossplatform 5961847f8eSopenharmony_ci * @since 10 6061847f8eSopenharmony_ci */ 6161847f8eSopenharmony_ci /** 6261847f8eSopenharmony_ci * A constructor used to create a PlainArray object. 6361847f8eSopenharmony_ci * 6461847f8eSopenharmony_ci * @throws { BusinessError } 10200012 - The PlainArray's constructor cannot be directly invoked. 6561847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 6661847f8eSopenharmony_ci * @crossplatform 6761847f8eSopenharmony_ci * @atomicservice 6861847f8eSopenharmony_ci * @since 12 6961847f8eSopenharmony_ci */ 7061847f8eSopenharmony_ci constructor(); 7161847f8eSopenharmony_ci /** 7261847f8eSopenharmony_ci * Gets the element number of the PlainArray. 7361847f8eSopenharmony_ci * 7461847f8eSopenharmony_ci * @type { number } 7561847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 7661847f8eSopenharmony_ci * @since 8 7761847f8eSopenharmony_ci */ 7861847f8eSopenharmony_ci /** 7961847f8eSopenharmony_ci * Gets the element number of the PlainArray. 8061847f8eSopenharmony_ci * 8161847f8eSopenharmony_ci * @type { number } 8261847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 8361847f8eSopenharmony_ci * @crossplatform 8461847f8eSopenharmony_ci * @since 10 8561847f8eSopenharmony_ci */ 8661847f8eSopenharmony_ci /** 8761847f8eSopenharmony_ci * Gets the element number of the PlainArray. 8861847f8eSopenharmony_ci * 8961847f8eSopenharmony_ci * @type { number } 9061847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 9161847f8eSopenharmony_ci * @crossplatform 9261847f8eSopenharmony_ci * @atomicservice 9361847f8eSopenharmony_ci * @since 12 9461847f8eSopenharmony_ci */ 9561847f8eSopenharmony_ci length: number; 9661847f8eSopenharmony_ci /** 9761847f8eSopenharmony_ci * Appends a key-value pair to PlainArray 9861847f8eSopenharmony_ci * 9961847f8eSopenharmony_ci * @param { number } key - key key Added the key of key-value 10061847f8eSopenharmony_ci * @param { T } value - value value Added the value of key-value 10161847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The add method cannot be bound. 10261847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 10361847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 10461847f8eSopenharmony_ci * 2.Incorrect parameter types. 10561847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 10661847f8eSopenharmony_ci * @since 8 10761847f8eSopenharmony_ci */ 10861847f8eSopenharmony_ci /** 10961847f8eSopenharmony_ci * Appends a key-value pair to PlainArray 11061847f8eSopenharmony_ci * 11161847f8eSopenharmony_ci * @param { number } key - key key Added the key of key-value 11261847f8eSopenharmony_ci * @param { T } value - value value Added the value of key-value 11361847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The add method cannot be bound. 11461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 11561847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 11661847f8eSopenharmony_ci * 2.Incorrect parameter types. 11761847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 11861847f8eSopenharmony_ci * @crossplatform 11961847f8eSopenharmony_ci * @since 10 12061847f8eSopenharmony_ci */ 12161847f8eSopenharmony_ci /** 12261847f8eSopenharmony_ci * Appends a key-value pair to PlainArray 12361847f8eSopenharmony_ci * 12461847f8eSopenharmony_ci * @param { number } key - key key Added the key of key-value 12561847f8eSopenharmony_ci * @param { T } value - value value Added the value of key-value 12661847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The add method cannot be bound. 12761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 12861847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 12961847f8eSopenharmony_ci * 2.Incorrect parameter types. 13061847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 13161847f8eSopenharmony_ci * @crossplatform 13261847f8eSopenharmony_ci * @atomicservice 13361847f8eSopenharmony_ci * @since 12 13461847f8eSopenharmony_ci */ 13561847f8eSopenharmony_ci add(key: number, value: T): void; 13661847f8eSopenharmony_ci /** 13761847f8eSopenharmony_ci * Clears the current PlainArray object 13861847f8eSopenharmony_ci * 13961847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The clear method cannot be bound. 14061847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 14161847f8eSopenharmony_ci * @since 8 14261847f8eSopenharmony_ci */ 14361847f8eSopenharmony_ci /** 14461847f8eSopenharmony_ci * Clears the current PlainArray object 14561847f8eSopenharmony_ci * 14661847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The clear method cannot be bound. 14761847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 14861847f8eSopenharmony_ci * @crossplatform 14961847f8eSopenharmony_ci * @since 10 15061847f8eSopenharmony_ci */ 15161847f8eSopenharmony_ci /** 15261847f8eSopenharmony_ci * Clears the current PlainArray object 15361847f8eSopenharmony_ci * 15461847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The clear method cannot be bound. 15561847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 15661847f8eSopenharmony_ci * @crossplatform 15761847f8eSopenharmony_ci * @atomicservice 15861847f8eSopenharmony_ci * @since 12 15961847f8eSopenharmony_ci */ 16061847f8eSopenharmony_ci clear(): void; 16161847f8eSopenharmony_ci /** 16261847f8eSopenharmony_ci * Obtains a clone of the current PlainArray object 16361847f8eSopenharmony_ci * 16461847f8eSopenharmony_ci * @returns { PlainArray<T> } 16561847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The clone method cannot be bound. 16661847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 16761847f8eSopenharmony_ci * @since 8 16861847f8eSopenharmony_ci */ 16961847f8eSopenharmony_ci /** 17061847f8eSopenharmony_ci * Obtains a clone of the current PlainArray object 17161847f8eSopenharmony_ci * 17261847f8eSopenharmony_ci * @returns { PlainArray<T> } 17361847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The clone method cannot be bound. 17461847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 17561847f8eSopenharmony_ci * @crossplatform 17661847f8eSopenharmony_ci * @since 10 17761847f8eSopenharmony_ci */ 17861847f8eSopenharmony_ci /** 17961847f8eSopenharmony_ci * Obtains a clone of the current PlainArray object 18061847f8eSopenharmony_ci * 18161847f8eSopenharmony_ci * @returns { PlainArray<T> } 18261847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The clone method cannot be bound. 18361847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 18461847f8eSopenharmony_ci * @crossplatform 18561847f8eSopenharmony_ci * @atomicservice 18661847f8eSopenharmony_ci * @since 12 18761847f8eSopenharmony_ci */ 18861847f8eSopenharmony_ci clone(): PlainArray<T>; 18961847f8eSopenharmony_ci /** 19061847f8eSopenharmony_ci * Checks whether the current PlainArray object contains the specified key 19161847f8eSopenharmony_ci * 19261847f8eSopenharmony_ci * @param { number } key - key key need to determine whether to include the key 19361847f8eSopenharmony_ci * @returns { boolean } the boolean type 19461847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The has method cannot be bound. 19561847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 19661847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 19761847f8eSopenharmony_ci * 2.Incorrect parameter types. 19861847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 19961847f8eSopenharmony_ci * @since 8 20061847f8eSopenharmony_ci */ 20161847f8eSopenharmony_ci /** 20261847f8eSopenharmony_ci * Checks whether the current PlainArray object contains the specified key 20361847f8eSopenharmony_ci * 20461847f8eSopenharmony_ci * @param { number } key - key key need to determine whether to include the key 20561847f8eSopenharmony_ci * @returns { boolean } the boolean type 20661847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The has method cannot be bound. 20761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 20861847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 20961847f8eSopenharmony_ci * 2.Incorrect parameter types. 21061847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 21161847f8eSopenharmony_ci * @crossplatform 21261847f8eSopenharmony_ci * @since 10 21361847f8eSopenharmony_ci */ 21461847f8eSopenharmony_ci /** 21561847f8eSopenharmony_ci * Checks whether the current PlainArray object contains the specified key 21661847f8eSopenharmony_ci * 21761847f8eSopenharmony_ci * @param { number } key - key key need to determine whether to include the key 21861847f8eSopenharmony_ci * @returns { boolean } the boolean type 21961847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The has method cannot be bound. 22061847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 22161847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 22261847f8eSopenharmony_ci * 2.Incorrect parameter types. 22361847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 22461847f8eSopenharmony_ci * @crossplatform 22561847f8eSopenharmony_ci * @atomicservice 22661847f8eSopenharmony_ci * @since 12 22761847f8eSopenharmony_ci */ 22861847f8eSopenharmony_ci has(key: number): boolean; 22961847f8eSopenharmony_ci /** 23061847f8eSopenharmony_ci * Queries the value associated with the specified key 23161847f8eSopenharmony_ci * 23261847f8eSopenharmony_ci * @param { number } key - key key Looking for goals 23361847f8eSopenharmony_ci * @returns { T } the value of key-value pairs 23461847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The get method cannot be bound. 23561847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 23661847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 23761847f8eSopenharmony_ci * 2.Incorrect parameter types. 23861847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 23961847f8eSopenharmony_ci * @since 8 24061847f8eSopenharmony_ci */ 24161847f8eSopenharmony_ci /** 24261847f8eSopenharmony_ci * Queries the value associated with the specified key 24361847f8eSopenharmony_ci * 24461847f8eSopenharmony_ci * @param { number } key - key key Looking for goals 24561847f8eSopenharmony_ci * @returns { T } the value of key-value pairs 24661847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The get method cannot be bound. 24761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 24861847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 24961847f8eSopenharmony_ci * 2.Incorrect parameter types. 25061847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 25161847f8eSopenharmony_ci * @crossplatform 25261847f8eSopenharmony_ci * @since 10 25361847f8eSopenharmony_ci */ 25461847f8eSopenharmony_ci /** 25561847f8eSopenharmony_ci * Queries the value associated with the specified key 25661847f8eSopenharmony_ci * 25761847f8eSopenharmony_ci * @param { number } key - key key Looking for goals 25861847f8eSopenharmony_ci * @returns { T } the value of key-value pairs 25961847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The get method cannot be bound. 26061847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 26161847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 26261847f8eSopenharmony_ci * 2.Incorrect parameter types. 26361847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 26461847f8eSopenharmony_ci * @crossplatform 26561847f8eSopenharmony_ci * @atomicservice 26661847f8eSopenharmony_ci * @since 12 26761847f8eSopenharmony_ci */ 26861847f8eSopenharmony_ci get(key: number): T; 26961847f8eSopenharmony_ci /** 27061847f8eSopenharmony_ci * Queries the index for a specified key 27161847f8eSopenharmony_ci * 27261847f8eSopenharmony_ci * @param { number } key - key key Looking for goals 27361847f8eSopenharmony_ci * @returns { number } Subscript corresponding to target 27461847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The getIndexOfKey method cannot be bound. 27561847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 27661847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 27761847f8eSopenharmony_ci * 2.Incorrect parameter types. 27861847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 27961847f8eSopenharmony_ci * @since 8 28061847f8eSopenharmony_ci */ 28161847f8eSopenharmony_ci /** 28261847f8eSopenharmony_ci * Queries the index for a specified key 28361847f8eSopenharmony_ci * 28461847f8eSopenharmony_ci * @param { number } key - key key Looking for goals 28561847f8eSopenharmony_ci * @returns { number } Subscript corresponding to target 28661847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The getIndexOfKey method cannot be bound. 28761847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 28861847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 28961847f8eSopenharmony_ci * 2.Incorrect parameter types. 29061847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 29161847f8eSopenharmony_ci * @crossplatform 29261847f8eSopenharmony_ci * @since 10 29361847f8eSopenharmony_ci */ 29461847f8eSopenharmony_ci /** 29561847f8eSopenharmony_ci * Queries the index for a specified key 29661847f8eSopenharmony_ci * 29761847f8eSopenharmony_ci * @param { number } 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 * @throws { BusinessError } 401 - Parameter error. Possible causes: 30161847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 30261847f8eSopenharmony_ci * 2.Incorrect parameter types. 30361847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 30461847f8eSopenharmony_ci * @crossplatform 30561847f8eSopenharmony_ci * @atomicservice 30661847f8eSopenharmony_ci * @since 12 30761847f8eSopenharmony_ci */ 30861847f8eSopenharmony_ci getIndexOfKey(key: number): number; 30961847f8eSopenharmony_ci /** 31061847f8eSopenharmony_ci * Queries the index for a specified value 31161847f8eSopenharmony_ci * 31261847f8eSopenharmony_ci * @param { T } value - value value Looking for goals 31361847f8eSopenharmony_ci * @returns { number } Subscript corresponding to target 31461847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The getIndexOfValue method cannot be bound. 31561847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 31661847f8eSopenharmony_ci * @since 8 31761847f8eSopenharmony_ci */ 31861847f8eSopenharmony_ci /** 31961847f8eSopenharmony_ci * Queries the index for a specified value 32061847f8eSopenharmony_ci * 32161847f8eSopenharmony_ci * @param { T } value - value value Looking for goals 32261847f8eSopenharmony_ci * @returns { number } Subscript corresponding to target 32361847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The getIndexOfValue method cannot be bound. 32461847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 32561847f8eSopenharmony_ci * @crossplatform 32661847f8eSopenharmony_ci * @since 10 32761847f8eSopenharmony_ci */ 32861847f8eSopenharmony_ci /** 32961847f8eSopenharmony_ci * Queries the index for a specified value 33061847f8eSopenharmony_ci * 33161847f8eSopenharmony_ci * @param { T } value - value value Looking for goals 33261847f8eSopenharmony_ci * @returns { number } Subscript corresponding to target 33361847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The getIndexOfValue method cannot be bound. 33461847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 33561847f8eSopenharmony_ci * @crossplatform 33661847f8eSopenharmony_ci * @atomicservice 33761847f8eSopenharmony_ci * @since 12 33861847f8eSopenharmony_ci */ 33961847f8eSopenharmony_ci getIndexOfValue(value: T): number; 34061847f8eSopenharmony_ci /** 34161847f8eSopenharmony_ci * Checks whether the current PlainArray object is empty 34261847f8eSopenharmony_ci * 34361847f8eSopenharmony_ci * @returns { boolean } the boolean type 34461847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The isEmpty method cannot be bound. 34561847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 34661847f8eSopenharmony_ci * @since 8 34761847f8eSopenharmony_ci */ 34861847f8eSopenharmony_ci /** 34961847f8eSopenharmony_ci * Checks whether the current PlainArray object is empty 35061847f8eSopenharmony_ci * 35161847f8eSopenharmony_ci * @returns { boolean } the boolean type 35261847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The isEmpty method cannot be bound. 35361847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 35461847f8eSopenharmony_ci * @crossplatform 35561847f8eSopenharmony_ci * @since 10 35661847f8eSopenharmony_ci */ 35761847f8eSopenharmony_ci /** 35861847f8eSopenharmony_ci * Checks whether the current PlainArray object is empty 35961847f8eSopenharmony_ci * 36061847f8eSopenharmony_ci * @returns { boolean } the boolean type 36161847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The isEmpty method cannot be bound. 36261847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 36361847f8eSopenharmony_ci * @crossplatform 36461847f8eSopenharmony_ci * @atomicservice 36561847f8eSopenharmony_ci * @since 12 36661847f8eSopenharmony_ci */ 36761847f8eSopenharmony_ci isEmpty(): boolean; 36861847f8eSopenharmony_ci /** 36961847f8eSopenharmony_ci * Queries the key at a specified index 37061847f8eSopenharmony_ci * 37161847f8eSopenharmony_ci * @param { number } index - index index Target subscript for search 37261847f8eSopenharmony_ci * @returns { number } the key of key-value pairs 37361847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The getKeyAt method cannot be bound. 37461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 37561847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 37661847f8eSopenharmony_ci * 2.Incorrect parameter types. 37761847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 37861847f8eSopenharmony_ci * @since 8 37961847f8eSopenharmony_ci */ 38061847f8eSopenharmony_ci /** 38161847f8eSopenharmony_ci * Queries the key at a specified index 38261847f8eSopenharmony_ci * 38361847f8eSopenharmony_ci * @param { number } index - index index Target subscript for search 38461847f8eSopenharmony_ci * @returns { number } the key of key-value pairs 38561847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The getKeyAt method cannot be bound. 38661847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 38761847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 38861847f8eSopenharmony_ci * 2.Incorrect parameter types. 38961847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 39061847f8eSopenharmony_ci * @crossplatform 39161847f8eSopenharmony_ci * @since 10 39261847f8eSopenharmony_ci */ 39361847f8eSopenharmony_ci /** 39461847f8eSopenharmony_ci * Queries the key at a specified index 39561847f8eSopenharmony_ci * 39661847f8eSopenharmony_ci * @param { number } index - index index Target subscript for search 39761847f8eSopenharmony_ci * @returns { number } the key of key-value pairs 39861847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The getKeyAt method cannot be bound. 39961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 40061847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 40161847f8eSopenharmony_ci * 2.Incorrect parameter types. 40261847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 40361847f8eSopenharmony_ci * @crossplatform 40461847f8eSopenharmony_ci * @atomicservice 40561847f8eSopenharmony_ci * @since 12 40661847f8eSopenharmony_ci */ 40761847f8eSopenharmony_ci getKeyAt(index: number): number; 40861847f8eSopenharmony_ci /** 40961847f8eSopenharmony_ci * Remove the key-value pair based on a specified key if it exists and return the value 41061847f8eSopenharmony_ci * 41161847f8eSopenharmony_ci * @param { number } key - key key Target to be deleted 41261847f8eSopenharmony_ci * @returns { T } Target mapped value 41361847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The remove method cannot be bound. 41461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 41561847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 41661847f8eSopenharmony_ci * 2.Incorrect parameter types. 41761847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 41861847f8eSopenharmony_ci * @since 8 41961847f8eSopenharmony_ci */ 42061847f8eSopenharmony_ci /** 42161847f8eSopenharmony_ci * Remove the key-value pair based on a specified key if it exists and return the value 42261847f8eSopenharmony_ci * 42361847f8eSopenharmony_ci * @param { number } key - key key Target to be deleted 42461847f8eSopenharmony_ci * @returns { T } Target mapped value 42561847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The remove method cannot be bound. 42661847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 42761847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 42861847f8eSopenharmony_ci * 2.Incorrect parameter types. 42961847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 43061847f8eSopenharmony_ci * @crossplatform 43161847f8eSopenharmony_ci * @since 10 43261847f8eSopenharmony_ci */ 43361847f8eSopenharmony_ci /** 43461847f8eSopenharmony_ci * Remove the key-value pair based on a specified key if it exists and return the value 43561847f8eSopenharmony_ci * 43661847f8eSopenharmony_ci * @param { number } key - key key Target to be deleted 43761847f8eSopenharmony_ci * @returns { T } Target mapped value 43861847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The remove method cannot be bound. 43961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 44061847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 44161847f8eSopenharmony_ci * 2.Incorrect parameter types. 44261847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 44361847f8eSopenharmony_ci * @crossplatform 44461847f8eSopenharmony_ci * @atomicservice 44561847f8eSopenharmony_ci * @since 12 44661847f8eSopenharmony_ci */ 44761847f8eSopenharmony_ci remove(key: number): T; 44861847f8eSopenharmony_ci /** 44961847f8eSopenharmony_ci * Remove the key-value pair at a specified index if it exists and return the value 45061847f8eSopenharmony_ci * 45161847f8eSopenharmony_ci * @param { number } index - index index Target subscript for search 45261847f8eSopenharmony_ci * @returns { T } the T type 45361847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The removeAt method cannot be bound. 45461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 45561847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 45661847f8eSopenharmony_ci * 2.Incorrect parameter types. 45761847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 45861847f8eSopenharmony_ci * @since 8 45961847f8eSopenharmony_ci */ 46061847f8eSopenharmony_ci /** 46161847f8eSopenharmony_ci * Remove the key-value pair at a specified index if it exists and return the value 46261847f8eSopenharmony_ci * 46361847f8eSopenharmony_ci * @param { number } index - index index Target subscript for search 46461847f8eSopenharmony_ci * @returns { T } the T type 46561847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The removeAt method cannot be bound. 46661847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 46761847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 46861847f8eSopenharmony_ci * 2.Incorrect parameter types. 46961847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 47061847f8eSopenharmony_ci * @crossplatform 47161847f8eSopenharmony_ci * @since 10 47261847f8eSopenharmony_ci */ 47361847f8eSopenharmony_ci /** 47461847f8eSopenharmony_ci * Remove the key-value pair at a specified index if it exists and return the value 47561847f8eSopenharmony_ci * 47661847f8eSopenharmony_ci * @param { number } index - index index Target subscript for search 47761847f8eSopenharmony_ci * @returns { T } the T type 47861847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The removeAt method cannot be bound. 47961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 48061847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 48161847f8eSopenharmony_ci * 2.Incorrect parameter types. 48261847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 48361847f8eSopenharmony_ci * @crossplatform 48461847f8eSopenharmony_ci * @atomicservice 48561847f8eSopenharmony_ci * @since 12 48661847f8eSopenharmony_ci */ 48761847f8eSopenharmony_ci removeAt(index: number): T; 48861847f8eSopenharmony_ci /** 48961847f8eSopenharmony_ci * Remove a group of key-value pairs from a specified index 49061847f8eSopenharmony_ci * 49161847f8eSopenharmony_ci * @param { number } index - index index remove start index 49261847f8eSopenharmony_ci * @param { number } size - size size Expected deletion quantity 49361847f8eSopenharmony_ci * @returns { number } Actual deleted quantity 49461847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The removeRangeFrom method cannot be bound. 49561847f8eSopenharmony_ci * @throws { BusinessError } 10200001 - The value of index is out of range. 49661847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 49761847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 49861847f8eSopenharmony_ci * 2.Incorrect parameter types. 49961847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 50061847f8eSopenharmony_ci * @since 8 50161847f8eSopenharmony_ci */ 50261847f8eSopenharmony_ci /** 50361847f8eSopenharmony_ci * Remove a group of key-value pairs from a specified index 50461847f8eSopenharmony_ci * 50561847f8eSopenharmony_ci * @param { number } index - index index remove start index 50661847f8eSopenharmony_ci * @param { number } size - size size Expected deletion quantity 50761847f8eSopenharmony_ci * @returns { number } Actual deleted quantity 50861847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The removeRangeFrom method cannot be bound. 50961847f8eSopenharmony_ci * @throws { BusinessError } 10200001 - The value of index is out of range. 51061847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 51161847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 51261847f8eSopenharmony_ci * 2.Incorrect parameter types. 51361847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 51461847f8eSopenharmony_ci * @crossplatform 51561847f8eSopenharmony_ci * @since 10 51661847f8eSopenharmony_ci */ 51761847f8eSopenharmony_ci /** 51861847f8eSopenharmony_ci * Remove a group of key-value pairs from a specified index 51961847f8eSopenharmony_ci * 52061847f8eSopenharmony_ci * @param { number } index - index index remove start index 52161847f8eSopenharmony_ci * @param { number } size - size size Expected deletion quantity 52261847f8eSopenharmony_ci * @returns { number } Actual deleted quantity 52361847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The removeRangeFrom method cannot be bound. 52461847f8eSopenharmony_ci * @throws { BusinessError } 10200001 - The value of index is out of range. 52561847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 52661847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 52761847f8eSopenharmony_ci * 2.Incorrect parameter types. 52861847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 52961847f8eSopenharmony_ci * @crossplatform 53061847f8eSopenharmony_ci * @atomicservice 53161847f8eSopenharmony_ci * @since 12 53261847f8eSopenharmony_ci */ 53361847f8eSopenharmony_ci removeRangeFrom(index: number, size: number): number; 53461847f8eSopenharmony_ci /** 53561847f8eSopenharmony_ci * Update value on specified index 53661847f8eSopenharmony_ci * 53761847f8eSopenharmony_ci * @param { number } index - index index Target subscript for search 53861847f8eSopenharmony_ci * @param { T } value - value value Updated the target mapped value 53961847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The setValueAt method cannot be bound. 54061847f8eSopenharmony_ci * @throws { BusinessError } 10200001 - The value of index is out of range. 54161847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 54261847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 54361847f8eSopenharmony_ci * 2.Incorrect parameter types. 54461847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 54561847f8eSopenharmony_ci * @since 8 54661847f8eSopenharmony_ci */ 54761847f8eSopenharmony_ci /** 54861847f8eSopenharmony_ci * Update value on specified index 54961847f8eSopenharmony_ci * 55061847f8eSopenharmony_ci * @param { number } index - index index Target subscript for search 55161847f8eSopenharmony_ci * @param { T } value - value value Updated the target mapped value 55261847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The setValueAt method cannot be bound. 55361847f8eSopenharmony_ci * @throws { BusinessError } 10200001 - The value of index is out of range. 55461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 55561847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 55661847f8eSopenharmony_ci * 2.Incorrect parameter types. 55761847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 55861847f8eSopenharmony_ci * @crossplatform 55961847f8eSopenharmony_ci * @since 10 56061847f8eSopenharmony_ci */ 56161847f8eSopenharmony_ci /** 56261847f8eSopenharmony_ci * Update value on specified index 56361847f8eSopenharmony_ci * 56461847f8eSopenharmony_ci * @param { number } index - index index Target subscript for search 56561847f8eSopenharmony_ci * @param { T } value - value value Updated the target mapped value 56661847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The setValueAt method cannot be bound. 56761847f8eSopenharmony_ci * @throws { BusinessError } 10200001 - The value of index is out of range. 56861847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 56961847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 57061847f8eSopenharmony_ci * 2.Incorrect parameter types. 57161847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 57261847f8eSopenharmony_ci * @crossplatform 57361847f8eSopenharmony_ci * @atomicservice 57461847f8eSopenharmony_ci * @since 12 57561847f8eSopenharmony_ci */ 57661847f8eSopenharmony_ci setValueAt(index: number, value: T): void; 57761847f8eSopenharmony_ci /** 57861847f8eSopenharmony_ci * Obtains the string representation of the PlainArray object 57961847f8eSopenharmony_ci * 58061847f8eSopenharmony_ci * @returns { String } 58161847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The toString method cannot be bound. 58261847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 58361847f8eSopenharmony_ci * @since 8 58461847f8eSopenharmony_ci */ 58561847f8eSopenharmony_ci /** 58661847f8eSopenharmony_ci * Obtains the string representation of the PlainArray object 58761847f8eSopenharmony_ci * 58861847f8eSopenharmony_ci * @returns { String } 58961847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The toString method cannot be bound. 59061847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 59161847f8eSopenharmony_ci * @crossplatform 59261847f8eSopenharmony_ci * @since 10 59361847f8eSopenharmony_ci */ 59461847f8eSopenharmony_ci /** 59561847f8eSopenharmony_ci * Obtains the string representation of the PlainArray object 59661847f8eSopenharmony_ci * 59761847f8eSopenharmony_ci * @returns { String } 59861847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The toString method cannot be bound. 59961847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 60061847f8eSopenharmony_ci * @crossplatform 60161847f8eSopenharmony_ci * @atomicservice 60261847f8eSopenharmony_ci * @since 12 60361847f8eSopenharmony_ci */ 60461847f8eSopenharmony_ci toString(): String; 60561847f8eSopenharmony_ci /** 60661847f8eSopenharmony_ci * Queries the value at a specified index 60761847f8eSopenharmony_ci * 60861847f8eSopenharmony_ci * @param { number } index - index index Target subscript for search 60961847f8eSopenharmony_ci * @returns { T } the value of key-value pairs 61061847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The getValueAt method cannot be bound. 61161847f8eSopenharmony_ci * @throws { BusinessError } 10200001 - The value of index is out of range. 61261847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 61361847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 61461847f8eSopenharmony_ci * 2.Incorrect parameter types. 61561847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 61661847f8eSopenharmony_ci * @since 8 61761847f8eSopenharmony_ci */ 61861847f8eSopenharmony_ci /** 61961847f8eSopenharmony_ci * Queries the value at a specified index 62061847f8eSopenharmony_ci * 62161847f8eSopenharmony_ci * @param { number } index - index index Target subscript for search 62261847f8eSopenharmony_ci * @returns { T } the value of key-value pairs 62361847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The getValueAt method cannot be bound. 62461847f8eSopenharmony_ci * @throws { BusinessError } 10200001 - The value of index is out of range. 62561847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 62661847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 62761847f8eSopenharmony_ci * 2.Incorrect parameter types. 62861847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 62961847f8eSopenharmony_ci * @crossplatform 63061847f8eSopenharmony_ci * @since 10 63161847f8eSopenharmony_ci */ 63261847f8eSopenharmony_ci /** 63361847f8eSopenharmony_ci * Queries the value at a specified index 63461847f8eSopenharmony_ci * 63561847f8eSopenharmony_ci * @param { number } index - index index Target subscript for search 63661847f8eSopenharmony_ci * @returns { T } the value of key-value pairs 63761847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The getValueAt method cannot be bound. 63861847f8eSopenharmony_ci * @throws { BusinessError } 10200001 - The value of index is out of range. 63961847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 64061847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 64161847f8eSopenharmony_ci * 2.Incorrect parameter types. 64261847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 64361847f8eSopenharmony_ci * @crossplatform 64461847f8eSopenharmony_ci * @atomicservice 64561847f8eSopenharmony_ci * @since 12 64661847f8eSopenharmony_ci */ 64761847f8eSopenharmony_ci getValueAt(index: number): T; 64861847f8eSopenharmony_ci /** 64961847f8eSopenharmony_ci * Executes a provided function once for each value in the PlainArray object. 65061847f8eSopenharmony_ci * 65161847f8eSopenharmony_ci * @param { function } callbackFn - callbackFn 65261847f8eSopenharmony_ci * callbackFn (required) A function that accepts up to three arguments. 65361847f8eSopenharmony_ci * The function to be called for each element. 65461847f8eSopenharmony_ci * @param { Object } [thisArg] - thisArg 65561847f8eSopenharmony_ci * thisArg (Optional) The value to be used as this value for when callbackFn is called. 65661847f8eSopenharmony_ci * If thisArg is omitted, undefined is used as the this value. 65761847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The forEach method cannot be bound. 65861847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 65961847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 66061847f8eSopenharmony_ci * 2.Incorrect parameter types. 66161847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 66261847f8eSopenharmony_ci * @since 8 66361847f8eSopenharmony_ci */ 66461847f8eSopenharmony_ci /** 66561847f8eSopenharmony_ci * Executes a provided function once for each value in the PlainArray object. 66661847f8eSopenharmony_ci * 66761847f8eSopenharmony_ci * @param { function } callbackFn - callbackFn 66861847f8eSopenharmony_ci * callbackFn (required) A function that accepts up to three arguments. 66961847f8eSopenharmony_ci * The function to be called for each element. 67061847f8eSopenharmony_ci * @param { Object } [thisArg] - thisArg 67161847f8eSopenharmony_ci * thisArg (Optional) The value to be used as this value for when callbackFn is called. 67261847f8eSopenharmony_ci * If thisArg is omitted, undefined is used as the this value. 67361847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The forEach method cannot be bound. 67461847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 67561847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 67661847f8eSopenharmony_ci * 2.Incorrect parameter types. 67761847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 67861847f8eSopenharmony_ci * @crossplatform 67961847f8eSopenharmony_ci * @since 10 68061847f8eSopenharmony_ci */ 68161847f8eSopenharmony_ci /** 68261847f8eSopenharmony_ci * Executes a provided function once for each value in the PlainArray object. 68361847f8eSopenharmony_ci * 68461847f8eSopenharmony_ci * @param { function } callbackFn - callbackFn 68561847f8eSopenharmony_ci * callbackFn (required) A function that accepts up to three arguments. 68661847f8eSopenharmony_ci * The function to be called for each element. 68761847f8eSopenharmony_ci * @param { Object } [thisArg] - thisArg 68861847f8eSopenharmony_ci * thisArg (Optional) The value to be used as this value for when callbackFn is called. 68961847f8eSopenharmony_ci * If thisArg is omitted, undefined is used as the this value. 69061847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The forEach method cannot be bound. 69161847f8eSopenharmony_ci * @throws { BusinessError } 401 - Parameter error. Possible causes: 69261847f8eSopenharmony_ci * 1.Mandatory parameters are left unspecified; 69361847f8eSopenharmony_ci * 2.Incorrect parameter types. 69461847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 69561847f8eSopenharmony_ci * @crossplatform 69661847f8eSopenharmony_ci * @atomicservice 69761847f8eSopenharmony_ci * @since 12 69861847f8eSopenharmony_ci */ 69961847f8eSopenharmony_ci forEach(callbackFn: (value: T, index?: number, PlainArray?: PlainArray<T>) => void, thisArg?: Object): void; 70061847f8eSopenharmony_ci /** 70161847f8eSopenharmony_ci * returns an iterator.Each item of the iterator is a Javascript Object 70261847f8eSopenharmony_ci * 70361847f8eSopenharmony_ci * @returns { IterableIterator<[number, T]> } 70461847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound. 70561847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 70661847f8eSopenharmony_ci * @since 8 70761847f8eSopenharmony_ci */ 70861847f8eSopenharmony_ci /** 70961847f8eSopenharmony_ci * returns an iterator.Each item of the iterator is a Javascript Object 71061847f8eSopenharmony_ci * 71161847f8eSopenharmony_ci * @returns { IterableIterator<[number, T]> } 71261847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound. 71361847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 71461847f8eSopenharmony_ci * @crossplatform 71561847f8eSopenharmony_ci * @since 10 71661847f8eSopenharmony_ci */ 71761847f8eSopenharmony_ci /** 71861847f8eSopenharmony_ci * returns an iterator.Each item of the iterator is a Javascript Object 71961847f8eSopenharmony_ci * 72061847f8eSopenharmony_ci * @returns { IterableIterator<[number, T]> } 72161847f8eSopenharmony_ci * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound. 72261847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang 72361847f8eSopenharmony_ci * @crossplatform 72461847f8eSopenharmony_ci * @atomicservice 72561847f8eSopenharmony_ci * @since 12 72661847f8eSopenharmony_ci */ 72761847f8eSopenharmony_ci [Symbol.iterator](): IterableIterator<[number, T]>; 72861847f8eSopenharmony_ci} 72961847f8eSopenharmony_ci 73061847f8eSopenharmony_ciexport default PlainArray; 731