diff --git a/arkts/@arkts.collections.d.ets b/arkts/@arkts.collections.d.ets index 89e961168c768b359a3396ced2f138400215e201..1e3652228ac40b1a0af4083698d7d287f0ee6a96 100644 --- a/arkts/@arkts.collections.d.ets +++ b/arkts/@arkts.collections.d.ets @@ -3407,7 +3407,7 @@ declare namespace collections { * @returns { boolean } Check result. The value true is returned if the element exists; * otherwise, false is returned. * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -3422,7 +3422,7 @@ declare namespace collections { * @returns { boolean } Check result. The value true is returned if the element exists; * otherwise, false is returned. * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -4491,7 +4491,7 @@ declare namespace collections { * Returns an iterable of key, value pairs for every entry in the array * * @returns { IterableIterator<[number, number]> } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The entries method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -4501,7 +4501,7 @@ declare namespace collections { * Returns an iterable of key, value pairs for every entry in the array * * @returns { IterableIterator<[number, number]> } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The entries method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -4513,7 +4513,7 @@ declare namespace collections { * Returns an iterable of keys in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The keys method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -4523,7 +4523,7 @@ declare namespace collections { * Returns an iterable of keys in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The keys method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -4535,7 +4535,7 @@ declare namespace collections { * Returns an iterable of values in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The values method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -4545,7 +4545,7 @@ declare namespace collections { * Returns an iterable of values in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The values method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -4561,7 +4561,7 @@ declare namespace collections { * @returns { boolean } A boolean value which is true if the value searchElement is found
* within the typed array (or the part of the typed array indicated by the index fromIndex, if specified). * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -4575,7 +4575,7 @@ declare namespace collections { * @returns { boolean } A boolean value which is true if the value searchElement is found
* within the typed array (or the part of the typed array indicated by the index fromIndex, if specified). * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -5671,7 +5671,7 @@ declare namespace collections { * Returns an iterable of key, value pairs for every entry in the array * * @returns { IterableIterator<[number, number]> } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The entries method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -5681,7 +5681,7 @@ declare namespace collections { * Returns an iterable of key, value pairs for every entry in the array * * @returns { IterableIterator<[number, number]> } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The entries method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -5693,7 +5693,7 @@ declare namespace collections { * Returns an iterable of keys in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The keys method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -5703,7 +5703,7 @@ declare namespace collections { * Returns an iterable of keys in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The keys method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -5715,7 +5715,7 @@ declare namespace collections { * Returns an iterable of values in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The values method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -5725,7 +5725,7 @@ declare namespace collections { * Returns an iterable of values in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The values method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -5741,7 +5741,7 @@ declare namespace collections { * @returns { boolean } A boolean value which is true if the value searchElement is found
* within the typed array (or the part of the typed array indicated by the index fromIndex, if specified). * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -5755,7 +5755,7 @@ declare namespace collections { * @returns { boolean } A boolean value which is true if the value searchElement is found
* within the typed array (or the part of the typed array indicated by the index fromIndex, if specified). * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -5890,7 +5890,7 @@ declare namespace collections { @Sendable class Int16Array { /** - * The size in bytes of each element in the array. + * Number of bytes occupied by each element in the ArkTS array. * * @type { number } * @readonly @@ -5900,7 +5900,7 @@ declare namespace collections { * @since 12 */ /** - * The size in bytes of each element in the array. + * Number of bytes occupied by each element in the ArkTS array. * * @type { number } * @readonly @@ -5912,7 +5912,7 @@ declare namespace collections { */ static readonly BYTES_PER_ELEMENT: number; /** - * The ArrayBuffer instance referenced by the array. + * Bottom-layer buffer used by an ArkTS array. * * @type { ArrayBuffer } * @readonly @@ -5921,7 +5921,7 @@ declare namespace collections { * @since 12 */ /** - * The ArrayBuffer instance referenced by the array. + * Bottom-layer buffer used by an ArkTS array. * * @type { ArrayBuffer } * @readonly @@ -5932,7 +5932,7 @@ declare namespace collections { */ readonly buffer: ArrayBuffer; /** - * The length in bytes of the array. + * Number of bytes occupied by the ArkTS array. * * @type { number } * @readonly @@ -5941,7 +5941,7 @@ declare namespace collections { * @since 12 */ /** - * The length in bytes of the array. + * Number of bytes occupied by the ArkTS array. * * @type { number } * @readonly @@ -5952,7 +5952,7 @@ declare namespace collections { */ readonly byteLength: number; /** - * The offset in bytes of the array. + * Offset between the ArkTS array and the start position of the ArrayBuffer. * * @type { number } * @readonly @@ -5961,7 +5961,7 @@ declare namespace collections { * @since 12 */ /** - * The offset in bytes of the array. + * Offset between the ArkTS array and the start position of the ArrayBuffer. * * @type { number } * @readonly @@ -5972,7 +5972,7 @@ declare namespace collections { */ readonly byteOffset: number; /** - * The length of the array. + * Number of elements in the ArkTS array. * * @type { number } * @readonly @@ -5981,7 +5981,7 @@ declare namespace collections { * @since 12 */ /** - * The length of the array. + * Number of elements in the ArkTS array. * * @type { number } * @readonly @@ -5992,7 +5992,7 @@ declare namespace collections { */ readonly length: number; /** - * A constructor used to create an Int16Array. + * A constructor used to create an empty ArkTS Int16Array. * * @throws { BusinessError } 10200012 - The Int16Array's constructor cannot be directly invoked. * @syscap SystemCapability.Utils.Lang @@ -6000,7 +6000,7 @@ declare namespace collections { * @since 12 */ /** - * A constructor used to create an Int16Array. + * A constructor used to create an empty ArkTS Int16Array. * * @throws { BusinessError } 10200012 - The Int16Array's constructor cannot be directly invoked. * @syscap SystemCapability.Utils.Lang @@ -6010,9 +6010,9 @@ declare namespace collections { */ constructor(); /** - * A constructor used to create an Int16Array. + * A constructor used to create an ArkTS Int16Array of a given length. * - * @param { number } length - The length of the array + * @param { number } length - Length of the ArkTS Int16Array. * @throws { BusinessError } 10200012 - The Int16Array's constructor cannot be directly invoked. * @throws { BusinessError } 401 - Parameter error. * @syscap SystemCapability.Utils.Lang @@ -6020,9 +6020,9 @@ declare namespace collections { * @since 12 */ /** - * A constructor used to create an Int16Array. + * A constructor used to create an ArkTS Int16Array of a given length. * - * @param { number } length - The length of the array + * @param { number } length - Length of the ArkTS Int16Array. * @throws { BusinessError } 10200012 - The Int16Array's constructor cannot be directly invoked. * @throws { BusinessError } 401 - Parameter error. * @syscap SystemCapability.Utils.Lang @@ -6054,9 +6054,10 @@ declare namespace collections { */ constructor(elements: Iterable); /** - * A constructor used to create an Int16Array. + * A constructor that creates an ArkTS Int16Array from an array-like object or ArkTS ArrayBuffer. * - * @param { ArrayLike | ArrayBuffer } array - An array is initialized with the given elements + * @param { ArrayLike | ArrayBuffer } array - Object used to construct the ArkTS Int16Array. When the + * parameter type is ArrayBuffer, the number of bytes occupied by the buffer must be an integer multiple of 4. * @throws { BusinessError } 10200012 - The Int16Array's constructor cannot be directly invoked. * @throws { BusinessError } 401 - Parameter error. * @syscap SystemCapability.Utils.Lang @@ -6064,9 +6065,10 @@ declare namespace collections { * @since 12 */ /** - * A constructor used to create an Int16Array. + * A constructor that creates an ArkTS Int16Array from an array-like object or ArkTS ArrayBuffer. * - * @param { ArrayLike | ArrayBuffer } array - An array is initialized with the given elements + * @param { ArrayLike | ArrayBuffer } array - Object used to construct the ArkTS Int16Array. When the + * parameter type is ArrayBuffer, the number of bytes occupied by the buffer must be an integer multiple of 4. * @throws { BusinessError } 10200012 - The Int16Array's constructor cannot be directly invoked. * @throws { BusinessError } 401 - Parameter error. * @syscap SystemCapability.Utils.Lang @@ -6076,13 +6078,12 @@ declare namespace collections { */ constructor(array: ArrayLike | ArrayBuffer); /** - * A constructor used to create an Int16Array. + * A constructor that creates an ArkTS Int16Array from an ArrayBuffer. * - * @param { ArrayBuffer } buffer - An array is initialized with the given elements - * @param { number } [byteOffset] - The byteOffset (in bytes) parameter specifies the memory range - * that will be exposed by the typed array view. - * @param { number } [length] - The length parameter specifies the memory range - * that will be exposed by the typed array view. + * @param { ArrayBuffer } buffer - ArrayBuffer object used to construct the ArkTS Int16Array. + * The number of bytes occupied by the buffer must be an integer multiple of 4. + * @param { number } [byteOffset] - Byte offset of the buffer, beginning at 0. The default value is 0. + * @param { number } [length] - Length of the ArkTS Int16Array. The default value is 0. * @throws { BusinessError } 10200012 - The Int16Array's constructor cannot be directly invoked. * @throws { BusinessError } 401 - Parameter error. * @syscap SystemCapability.Utils.Lang @@ -6090,13 +6091,12 @@ declare namespace collections { * @since 12 */ /** - * A constructor used to create an Int16Array. + * A constructor that creates an ArkTS Int16Array from an ArrayBuffer. * - * @param { ArrayBuffer } buffer - An array is initialized with the given elements - * @param { number } [byteOffset] - The byteOffset (in bytes) parameter specifies the memory range - * that will be exposed by the typed array view. - * @param { number } [length] - The length parameter specifies the memory range - * that will be exposed by the typed array view. + * @param { ArrayBuffer } buffer - ArrayBuffer object used to construct the ArkTS Int16Array. + * The number of bytes occupied by the buffer must be an integer multiple of 4. + * @param { number } [byteOffset] - Byte offset of the buffer, beginning at 0. The default value is 0. + * @param { number } [length] - Length of the ArkTS Int16Array. The default value is 0. * @throws { BusinessError } 10200012 - The Int16Array's constructor cannot be directly invoked. * @throws { BusinessError } 401 - Parameter error. * @syscap SystemCapability.Utils.Lang @@ -6106,10 +6106,10 @@ declare namespace collections { */ constructor(buffer: ArrayBuffer, byteOffset?: number, length?: number); /** - * Creates an Int16Array from an array-like object. + * Creates an ArkTS Int16Array from an array-like or iterator object. * - * @param { ArrayLike } arrayLike - An array-like object to convert to an Int16Array. - * @returns { Int16Array } A new Int16Array instance + * @param { ArrayLike } arrayLike - Array-like object used to construct the ArkTS Int16Array. + * @returns { Int16Array } New ArkTS Int16Array generated. * @throws { BusinessError } 401 - Parameter error. * @static * @syscap SystemCapability.Utils.Lang @@ -6117,10 +6117,10 @@ declare namespace collections { * @since 12 */ /** - * Creates an Int16Array from an array-like object. + * Creates an ArkTS Int16Array from an array-like or iterator object. * - * @param { ArrayLike } arrayLike - An array-like object to convert to an Int16Array. - * @returns { Int16Array } A new Int16Array instance + * @param { ArrayLike } arrayLike - Array-like object used to construct the ArkTS Int16Array. + * @returns { Int16Array } New ArkTS Int16Array generated. * @throws { BusinessError } 401 - Parameter error. * @static * @syscap SystemCapability.Utils.Lang @@ -6129,12 +6129,13 @@ declare namespace collections { * @since 18 */ static from(arrayLike: ArrayLike): Int16Array; + /** - * Creates an Int16Array from an array-like object. + * Creates an ArkTS Int16Array from an array-like object. * - * @param { ArrayLike } arrayLike - An array-like object to convert to an Int16Array. + * @param { ArrayLike } arrayLike - Array-like object used to construct the ArkTS Int16Array. * @param { TypedArrayFromMapFn } mapFn - A mapping function to call on every element of the array. - * @returns { Int16Array } A new Int16Array instance + * @returns { Int16Array } New ArkTS Int16Array generated. * @throws { BusinessError } 401 - Parameter error. * @static * @syscap SystemCapability.Utils.Lang @@ -6142,11 +6143,11 @@ declare namespace collections { * @since 12 */ /** - * Creates an Int16Array from an array-like object. + * Creates an ArkTS Int16Array from an array-like object. * - * @param { ArrayLike } arrayLike - An array-like object to convert to an Int16Array. + * @param { ArrayLike } arrayLike - Array-like object used to construct the ArkTS Int16Array. * @param { TypedArrayFromMapFn } mapFn - A mapping function to call on every element of the array. - * @returns { Int16Array } A new Int16Array instance + * @returns { Int16Array } New ArkTS Int16Array generated. * @throws { BusinessError } 401 - Parameter error. * @static * @syscap SystemCapability.Utils.Lang @@ -6156,11 +6157,11 @@ declare namespace collections { */ static from(arrayLike: ArrayLike, mapFn: TypedArrayFromMapFn): Int16Array; /** - * Creates an Int16Array from an iterable object. + * Creates an ArkTS Int16Array from an iterator object. * - * @param { Iterable } arrayLike - An iterable object to convert to an Int16Array. - * @param { TypedArrayFromMapFn } [mapFn] - A mapping function to - * call on every element of the array. + * @param { Iterable } arrayLike - Iterator object used to construct the ArkTS Int16Array. + * @param { TypedArrayFromMapFn } [mapFn] - Mapping function. If no value is passed in, + * no special processing is conducted on the elements. * @returns { Int16Array } A new Int16Array instance * @throws { BusinessError } 401 - Parameter error. * @static @@ -6169,11 +6170,11 @@ declare namespace collections { * @since 12 */ /** - * Creates an Int16Array from an iterable object. + * Creates an ArkTS Int16Array from an iterator object. * - * @param { Iterable } arrayLike - An iterable object to convert to an Int16Array. - * @param { TypedArrayFromMapFn } [mapFn] - A mapping function to - * call on every element of the array. + * @param { Iterable } arrayLike - Iterator object used to construct the ArkTS Int16Array. + * @param { TypedArrayFromMapFn } [mapFn] - Mapping function. If no value is passed in, + * no special processing is conducted on the elements. * @returns { Int16Array } A new Int16Array instance * @throws { BusinessError } 401 - Parameter error. * @static @@ -6184,15 +6185,16 @@ declare namespace collections { */ static from(arrayLike: Iterable, mapFn?: TypedArrayFromMapFn): Int16Array; /** - * Returns the this object after copying a section of the array identified by start and end - * to the same array starting at position target. + * Copies elements within a given range from this ArkTS Int16Array to another position in sequence. * * @param { number } target - If target is negative, it is treated as length+target where length is the * length of the array. - * @param { number } start - If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. - * @param { number } [end] - If not specified, length of the this object is used as its default value. - * @returns { Int16Array } The array itself. + * @param { number } start - Start index of the range. + * If a negative number is passed in, it refers to the index of start + Int16Array.length. + * @param { number } [end] - End index of the range. + * If a negative number is passed in, it refers to the index of end + Int16Array.length. + * The default value is the length of the ArkTS Int16Array. + * @returns { Int16Array } ArkTS Int16Array after being modified. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The copyWithin method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -6201,15 +6203,16 @@ declare namespace collections { * @since 12 */ /** - * Returns the this object after copying a section of the array identified by start and end - * to the same array starting at position target. + * Copies elements within a given range from this ArkTS Int16Array to another position in sequence. * * @param { number } target - If target is negative, it is treated as length+target where length is the * length of the array. - * @param { number } start - If start is negative, it is treated as length+start. If end is negative, it - * is treated as length+end. - * @param { number } [end] - If not specified, length of the this object is used as its default value. - * @returns { Int16Array } The array itself. + * @param { number } start - Start index of the range. + * If a negative number is passed in, it refers to the index of start + Int16Array.length. + * @param { number } [end] - End index of the range. + * If a negative number is passed in, it refers to the index of end + Int16Array.length. + * The default value is the length of the ArkTS Int16Array. + * @returns { Int16Array } ArkTS Int16Array after being modified. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The copyWithin method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -6220,13 +6223,13 @@ declare namespace collections { */ copyWithin(target: number, start: number, end?: number): Int16Array; /** - * Determines whether all the members of an array satisfy the specified test. + * Checks whether all elements in this ArkTS Int16Array meet a given condition. * * @param { TypedArrayPredicateFn } predicate - A function that accepts up to three arguments. * The every method calls the predicate function for each element in the array until * the predicate returns a value which is coercible to the Boolean value false, or until the end of the array. - * @returns { boolean } true unless predicate returns a false value for a typed array element, - * in which case false is immediately returned. + * @returns { boolean } Check result. The value true is returned if all elements meet the given condition; + * otherwise, false is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The every method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -6235,13 +6238,13 @@ declare namespace collections { * @since 12 */ /** - * Determines whether all the members of an array satisfy the specified test. + * Checks whether all elements in this ArkTS Int16Array meet a given condition. * * @param { TypedArrayPredicateFn } predicate - A function that accepts up to three arguments. * The every method calls the predicate function for each element in the array until * the predicate returns a value which is coercible to the Boolean value false, or until the end of the array. - * @returns { boolean } true unless predicate returns a false value for a typed array element, - * in which case false is immediately returned. + * @returns { boolean } Check result. The value true is returned if all elements meet the given condition; + * otherwise, false is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The every method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -6252,14 +6255,14 @@ declare namespace collections { */ every(predicate: TypedArrayPredicateFn): boolean; /** - * Returns the this object after filling the section identified by start and end with value. + * Fills all elements in a given range in this ArkTS Int16Array with a value. * - * @param { number } value - value to fill array section with. - * @param { number } [start] - index to start filling the array at. If start is negative, it is treated as - * length+start where length is the length of the array. - * @param { number } [end] - index to stop filling the array at. If end is negative, it is treated as - * length+end. - * @returns { Int16Array } The array itself. + * @param { number } value - Value to fill in. + * @param { number } [start] - Start index of the range. If a negative number is passed in, + * it refers to the index of start + Int16Array.length. The default value is 0. + * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in, + * it refers to the index of end + Int16Array.length. The default value is the length of the ArkTS Int16Array. + * @returns { Int16Array } Filled ArkTS Int16Array. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The fill method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -6268,14 +6271,14 @@ declare namespace collections { * @since 12 */ /** - * Returns the this object after filling the section identified by start and end with value. + * Fills all elements in a given range in this ArkTS Int16Array with a value. * - * @param { number } value - value to fill array section with. - * @param { number } [start] - index to start filling the array at. If start is negative, it is treated as - * length+start where length is the length of the array. - * @param { number } [end] - index to stop filling the array at. If end is negative, it is treated as - * length+end. - * @returns { Int16Array } The array itself. + * @param { number } value - Value to fill in. + * @param { number } [start] - Start index of the range. If a negative number is passed in, + * it refers to the index of start + Int16Array.length. The default value is 0. + * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in, + * it refers to the index of end + Int16Array.length. The default value is the length of the ArkTS Int16Array. + * @returns { Int16Array } Filled ArkTS Int16Array. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The fill method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -6286,11 +6289,11 @@ declare namespace collections { */ fill(value: number, start?: number, end?: number): Int16Array; /** - * Returns the elements of an array that meet the condition specified in a callback function. + * Returns a new ArkTS Int16Array that contains all elements that meet the given condition. * * @param { TypedArrayPredicateFn } predicate - A function that accepts up to three arguments. * The filter method calls the predicate function one time for each element in the array. - * @returns { Int16Array } The array itself. + * @returns { Int16Array } Filtered ArkTS Int16Array. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The filter method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -6299,11 +6302,11 @@ declare namespace collections { * @since 12 */ /** - * Returns the elements of an array that meet the condition specified in a callback function. + * Returns a new ArkTS Int16Array that contains all elements that meet the given condition. * * @param { TypedArrayPredicateFn } predicate - A function that accepts up to three arguments. * The filter method calls the predicate function one time for each element in the array. - * @returns { Int16Array } The array itself. + * @returns { Int16Array } Filtered ArkTS Int16Array. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The filter method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -6314,14 +6317,14 @@ declare namespace collections { */ filter(predicate: TypedArrayPredicateFn): Int16Array; /** - * Returns the value of the first element in the array where predicate is true, and undefined - * otherwise. + * Returns the value of the first element that passes a test provided by a callback function. + * If none of the elements pass the test, undefined is returned. * * @param { TypedArrayPredicateFn } predicate - find calls predicate once for each element of * the array, in ascending order, until it finds one where predicate returns true. * If such an element is found, find immediately returns that element value. Otherwise, find returns undefined. - * @returns { number | undefined } The first element in the typed array - * that satisfies the provided testing function. Otherwise, undefined is returned. + * @returns { number | undefined } Value of the first element that passes the test. + * If none of the elements pass the test, undefined is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The find method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -6330,14 +6333,14 @@ declare namespace collections { * @since 12 */ /** - * Returns the value of the first element in the array where predicate is true, and undefined - * otherwise. + * Returns the value of the first element that passes a test provided by a callback function. + * If none of the elements pass the test, undefined is returned. * * @param { TypedArrayPredicateFn } predicate - find calls predicate once for each element of * the array, in ascending order, until it finds one where predicate returns true. * If such an element is found, find immediately returns that element value. Otherwise, find returns undefined. - * @returns { number | undefined } The first element in the typed array - * that satisfies the provided testing function. Otherwise, undefined is returned. + * @returns { number | undefined } Value of the first element that passes the test. + * If none of the elements pass the test, undefined is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The find method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -6348,13 +6351,14 @@ declare namespace collections { */ find(predicate: TypedArrayPredicateFn): number | undefined; /** - * Returns the index of the first element in the array where predicate is true, and -1 - * otherwise. + * Returns the index of the first element that passes a test provided by a callback function. + * If none of the elements pass the test, -1 is returned. * * @param { TypedArrayPredicateFn } predicate - find calls predicate once for each element of * the array, in ascending order, until it finds one where predicate returns true. If such an element is found, * findIndex immediately returns that element index. Otherwise, findIndex returns -1. - * @returns { number } The index of the first element in the typed array that passes the test. Otherwise, -1. + * @returns { number } Index of the first element that passes the test. + * If none of the elements pass the test, -1 is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The findIndex method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -6363,13 +6367,14 @@ declare namespace collections { * @since 12 */ /** - * Returns the index of the first element in the array where predicate is true, and -1 - * otherwise. + * Returns the index of the first element that passes a test provided by a callback function. + * If none of the elements pass the test, -1 is returned. * * @param { TypedArrayPredicateFn } predicate - find calls predicate once for each element of * the array, in ascending order, until it finds one where predicate returns true. If such an element is found, * findIndex immediately returns that element index. Otherwise, findIndex returns -1. - * @returns { number } The index of the first element in the typed array that passes the test. Otherwise, -1. + * @returns { number } Index of the first element that passes the test. + * If none of the elements pass the test, -1 is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The findIndex method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -6380,7 +6385,7 @@ declare namespace collections { */ findIndex(predicate: TypedArrayPredicateFn): number; /** - * Performs the specified action for each element in an array. + * Calls a callback function for each element in this ArkTS Int16Array. * * @param { TypedArrayForEachCallback } callbackFn - A function that * accepts up to three arguments. @@ -6393,7 +6398,7 @@ declare namespace collections { * @since 12 */ /** - * Performs the specified action for each element in an array. + * Calls a callback function for each element in this ArkTS Int16Array. * * @param { TypedArrayForEachCallback } callbackFn - A function that * accepts up to three arguments. @@ -6408,12 +6413,14 @@ declare namespace collections { */ forEach(callbackFn: TypedArrayForEachCallback): void; /** - * Returns the index of the first occurrence of a value in an array. + * Returns the index of the first occurrence of a value in this ArkTS Int16Array. + * If the value is not found, -1 is returned. * - * @param { number } searchElement - The value to locate in the array. - * @param { number } [fromIndex] - The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. - * @returns { number } The first index of searchElement in the typed array; -1 if not found. + * @param { number } searchElement - Value to search for. + * @param { number } [fromIndex] - Index from which the search starts. The default value is 0. + * If the index is greater than or equal to the length of the ArkTS Int16Array, -1 is returned. + * If a negative number is passed in, the search starts from the end of the ArkTS Int16Array. + * @returns { number } Index of the first occurrence of the value. If the value is not found, -1 is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The indexOf method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -6422,12 +6429,14 @@ declare namespace collections { * @since 12 */ /** - * Returns the index of the first occurrence of a value in an array. + * Returns the index of the first occurrence of a value in this ArkTS Int16Array. + * If the value is not found, -1 is returned. * - * @param { number } searchElement - The value to locate in the array. - * @param { number } [fromIndex] - The array index at which to begin the search. If fromIndex is omitted, the - * search starts at index 0. - * @returns { number } The first index of searchElement in the typed array; -1 if not found. + * @param { number } searchElement - Value to search for. + * @param { number } [fromIndex] - Index from which the search starts. The default value is 0. + * If the index is greater than or equal to the length of the ArkTS Int16Array, -1 is returned. + * If a negative number is passed in, the search starts from the end of the ArkTS Int16Array. + * @returns { number } Index of the first occurrence of the value. If the value is not found, -1 is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The indexOf method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -6438,11 +6447,10 @@ declare namespace collections { */ indexOf(searchElement: number, fromIndex?: number): number; /** - * Adds all the elements of an array separated by the specified separator string. - * @param { string } [separator] - A string used to separate one element of an array from the next in the - * resulting String. If omitted, the array elements are separated with a comma. - * @returns { string } A string with all typed array elements joined. - * If array.length is 0, the empty string is returned. + * Concatenates all elements in this ArkTS Int16Array into a string, with a given separator. + * @param { string } [separator] - Separator to be used. + * If no value is passed in, a comma (,) is used as the separator. + * @returns { string } String obtained. If the array is empty, an empty string is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The join method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -6451,11 +6459,10 @@ declare namespace collections { * @since 12 */ /** - * Adds all the elements of an array separated by the specified separator string. - * @param { string } [separator] - A string used to separate one element of an array from the next in the - * resulting String. If omitted, the array elements are separated with a comma. - * @returns { string } A string with all typed array elements joined. - * If array.length is 0, the empty string is returned. + * Concatenates all elements in this ArkTS Int16Array into a string, with a given separator. + * @param { string } [separator] - Separator to be used. + * If no value is passed in, a comma (,) is used as the separator. + * @returns { string } String obtained. If the array is empty, an empty string is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The join method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -6466,13 +6473,13 @@ declare namespace collections { */ join(separator?: string): string; /** - * Calls a defined callback function on each element of an array, and returns an array that - * contains the results. + * Applies a callback function to each element in this ArkTS Int16Array + * and uses the result to create an ArkTS Int16Array. * * @param { TypedArrayMapCallback } callbackFn - A function that * accepts up to three arguments. * The map method calls the callbackfn function one time for each element in the array. - * @returns { Int16Array } The array itself. + * @returns { Int16Array } New ArkTS Int16Array generated. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The map method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -6481,13 +6488,13 @@ declare namespace collections { * @since 12 */ /** - * Calls a defined callback function on each element of an array, and returns an array that - * contains the results. + * Applies a callback function to each element in this ArkTS Int16Array + * and uses the result to create an ArkTS Int16Array. * * @param { TypedArrayMapCallback } callbackFn - A function that * accepts up to three arguments. * The map method calls the callbackfn function one time for each element in the array. - * @returns { Int16Array } The array itself. + * @returns { Int16Array } New ArkTS Int16Array generated. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The map method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -6618,7 +6625,7 @@ declare namespace collections { */ reduce(callbackFn: TypedArrayReduceCallback, initialValue: U): U; /** - * Reverses the elements in an Array. + * Reverses this ArkTS Int16Array. * * @returns { Int16Array } The reference to the original typed array, now reversed. *
Note that the typed array is reversed in place, and no copy is made. @@ -6629,7 +6636,7 @@ declare namespace collections { * @since 12 */ /** - * Reverses the elements in an Array. + * Reverses this ArkTS Int16Array. * * @returns { Int16Array } The reference to the original typed array, now reversed. *
Note that the typed array is reversed in place, and no copy is made. @@ -6642,10 +6649,10 @@ declare namespace collections { */ reverse(): Int16Array; /** - * Sets a value or an array of values. + * Writes the elements in an array-like object to the given start position in sequence. * - * @param { ArrayLike } array - A typed or untyped array of values to set. - * @param { number } [offset] - The index in the current array at which the values are to be written. + * @param { ArrayLike } array - Array-like object whose elements will be written. + * @param { number } [offset] - Start position for writing data. The default value is 0. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The set method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -6654,10 +6661,10 @@ declare namespace collections { * @since 12 */ /** - * Sets a value or an array of values. + * Writes the elements in an array-like object to the given start position in sequence. * - * @param { ArrayLike } array - A typed or untyped array of values to set. - * @param { number } [offset] - The index in the current array at which the values are to be written. + * @param { ArrayLike } array - Array-like object whose elements will be written. + * @param { number } [offset] - Start position for writing data. The default value is 0. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The set method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -6668,12 +6675,13 @@ declare namespace collections { */ set(array: ArrayLike, offset?: number): void; /** - * Returns a section of an array. + * Selects a range of elements in this ArkTS Int16Array to create an ArkTS Int16Array. * - * @param { number } [start] - The beginning of the specified portion of the array. - * @param { number } [end] - The end of the specified portion of the array. - * This is exclusive of the element at the index 'end'. - * @returns { Int16Array } A new typed array containing the extracted elements. + * @param { number } [start] - Start index of the range. If a negative number is passed in, + * it refers to the index of start + Int16Array.length. The default value is 0. + * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in, + * it refers to the index of end + Int16Array.length. The default value is the length of the ArkTS Int16Array. + * @returns { Int16Array } New ArkTS Int16Array generated. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The slice method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -6682,12 +6690,13 @@ declare namespace collections { * @since 12 */ /** - * Returns a section of an array. + * Selects a range of elements in this ArkTS Int16Array to create an ArkTS Int16Array. * - * @param { number } [start] - The beginning of the specified portion of the array. - * @param { number } [end] - The end of the specified portion of the array. - * This is exclusive of the element at the index 'end'. - * @returns { Int16Array } A new typed array containing the extracted elements. + * @param { number } [start] - Start index of the range. If a negative number is passed in, + * it refers to the index of start + Int16Array.length. The default value is 0. + * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in, + * it refers to the index of end + Int16Array.length. The default value is the length of the ArkTS Int16Array. + * @returns { Int16Array } New ArkTS Int16Array generated. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The slice method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -6698,13 +6707,13 @@ declare namespace collections { */ slice(start?: number, end?: number): Int16Array; /** - * Determines whether the specified callback function returns true for any element of an array. + * Checks whether any element in this ArkTS Int16Array meets a given condition. * * @param { TypedArrayPredicateFn } predicate - A function that accepts up to three arguments. * The some method calls the predicate function for each element in the array until * the predicate returns a value which is coercible to the Boolean value true, or until the end of the array. - * @returns { boolean } false unless predicate returns a truthy value for a typed array element, - * in which case true is immediately returned. + * @returns { boolean } Check result. The value true is returned if an element meeting the given condition exists; + * otherwise, false is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The some method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -6713,13 +6722,13 @@ declare namespace collections { * @since 12 */ /** - * Determines whether the specified callback function returns true for any element of an array. + * Checks whether any element in this ArkTS Int16Array meets a given condition. * * @param { TypedArrayPredicateFn } predicate - A function that accepts up to three arguments. * The some method calls the predicate function for each element in the array until * the predicate returns a value which is coercible to the Boolean value true, or until the end of the array. - * @returns { boolean } false unless predicate returns a truthy value for a typed array element, - * in which case true is immediately returned. + * @returns { boolean } Check result. The value true is returned if an element meeting the given condition exists; + * otherwise, false is returned. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The some method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -6730,7 +6739,7 @@ declare namespace collections { */ some(predicate: TypedArrayPredicateFn): boolean; /** - * Sorts an array. + * Sorts elements in this ArkTS Int16Array and returns the sorted ArkTS Int16Array. * * @param { TypedArrayCompareFn } [compareFn] - Function used to determine the order of the elements. * It is expected to return a negative value if first argument is less than second argument, @@ -6746,7 +6755,7 @@ declare namespace collections { * @since 12 */ /** - * Sorts an array. + * Sorts elements in this ArkTS Int16Array and returns the sorted ArkTS Int16Array. * * @param { TypedArrayCompareFn } [compareFn] - Function used to determine the order of the elements. * It is expected to return a negative value if first argument is less than second argument, @@ -6764,12 +6773,13 @@ declare namespace collections { */ sort(compareFn?: TypedArrayCompareFn): Int16Array; /** - * Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements - * at begin, inclusive, up to end, exclusive. + * Returns a new ArkTS Int16Array based on the same ArkTS ArrayBuffer. * - * @param { number } [begin] - The index of the beginning of the array. - * @param { number } [end] - The index of the end of the array. - * @returns { Int16Array } A new Int16Array object. + * @param { number } [begin] - Start index of the range. If a negative number is passed in, + * it refers to the index of begin + Int16Array.length. The default value is 0. + * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in, + * it refers to the index of end + Int16Array.length. The default value is the length of the ArkTS Int16Array. + * @returns { Int16Array } New ArkTS Int16Array generated. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The subarray method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -6778,12 +6788,13 @@ declare namespace collections { * @since 12 */ /** - * Gets a new Int16Array view of the ArrayBuffer store for this array, referencing the elements - * at begin, inclusive, up to end, exclusive. + * Returns a new ArkTS Int16Array based on the same ArkTS ArrayBuffer. * - * @param { number } [begin] - The index of the beginning of the array. - * @param { number } [end] - The index of the end of the array. - * @returns { Int16Array } A new Int16Array object. + * @param { number } [begin] - Start index of the range. If a negative number is passed in, + * it refers to the index of begin + Int16Array.length. The default value is 0. + * @param { number } [end] - End index of the range (exclusive). If a negative number is passed in, + * it refers to the index of end + Int16Array.length. The default value is the length of the ArkTS Int16Array. + * @returns { Int16Array } New ArkTS Int16Array generated. * @throws { BusinessError } 401 - Parameter error. * @throws { BusinessError } 10200011 - The subarray method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -6794,10 +6805,10 @@ declare namespace collections { */ subarray(begin?: number, end?: number): Int16Array; /** - * Returns the item located at the specified index. + * Returns the element at the given index. If no element is found, undefined is returned. * - * @param { number } index - The zero-based index of the desired code unit.
- * A negative index will count back from the last item. + * @param { number } index - Index of the element. The index in an array always starts from 0 and is an integer. + * If a negative number is passed in, it refers to the index of index + Int16Array.length. * @returns { number | undefined } The element in the array matching the given index.
* Always returns undefined if index < -array.length or * index >= array.length without attempting to access the corresponding property. @@ -6809,10 +6820,10 @@ declare namespace collections { * @since 12 */ /** - * Returns the item located at the specified index. + * Returns the element at the given index. If no element is found, undefined is returned. * - * @param { number } index - The zero-based index of the desired code unit.
- * A negative index will count back from the last item. + * @param { number } index - Index of the element. The index in an array always starts from 0 and is an integer. + * If a negative number is passed in, it refers to the index of index + Int16Array.length. * @returns { number | undefined } The element in the array matching the given index.
* Always returns undefined if index < -array.length or * index >= array.length without attempting to access the corresponding property. @@ -6826,7 +6837,9 @@ declare namespace collections { */ at(index: number): number | undefined; /** - * Returns an iterator that iterates over numbers. + * Returns an iterator, each item of which is a JavaScript object. + * NOTE: + * This API cannot be used in .ets files. * * @returns { IterableIterator } Iterator object that yields numbers. * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound. @@ -6835,7 +6848,9 @@ declare namespace collections { * @since 12 */ /** - * Returns an iterator that iterates over numbers. + * Returns an iterator, each item of which is a JavaScript object. + * NOTE: + * This API cannot be used in .ets files. * * @returns { IterableIterator } Iterator object that yields numbers. * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound. @@ -6846,20 +6861,20 @@ declare namespace collections { */ [Symbol.iterator](): IterableIterator; /** - * Returns an iterable of key, value pairs for every entry in the array + * Returns an iterator object that contains the key-value pair of each element in this ArkTS Int16Array. * * @returns { IterableIterator<[number, number]> } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The entries method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice * @since 12 */ /** - * Returns an iterable of key, value pairs for every entry in the array + * Returns an iterator object that contains the key-value pair of each element in this ArkTS Int16Array. * * @returns { IterableIterator<[number, number]> } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The entries method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -6868,20 +6883,20 @@ declare namespace collections { */ entries(): IterableIterator<[number, number]>; /** - * Returns an iterable of keys in the array + * Returns an iterator object that contains the key (index) of each element in this ArkTS Int16Array. * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The keys method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice * @since 12 */ /** - * Returns an iterable of keys in the array + * Returns an iterator object that contains the key (index) of each element in this ArkTS Int16Array. * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The keys method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -6890,20 +6905,20 @@ declare namespace collections { */ keys(): IterableIterator; /** - * Returns an iterable of values in the array + * Returns an iterator object that contains the value of each element in this ArkTS Int16Array. * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The values method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice * @since 12 */ /** - * Returns an iterable of values in the array + * Returns an iterator object that contains the value of each element in this ArkTS Int16Array. * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The values method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -6912,28 +6927,30 @@ declare namespace collections { */ values(): IterableIterator; /** - * Determines whether an array includes a certain element, returning true or false as appropriate. + * Checks whether elements are contained in this ArkTS Int16Array. * - * @param { number } searchElement - The element to search for. - * @param { number } [fromIndex] - The position in this array at which to begin searching for searchElement. - * @returns { boolean } A boolean value which is true if the value searchElement is found
- * within the typed array (or the part of the typed array indicated by the index fromIndex, if specified). + * @param { number } searchElement - Element to search for. + * @param { number } [fromIndex] - Index from which the search starts. If a negative number is passed in, + * it refers to the index of fromIndex + Int16Array.length. The default value is 0. + * @returns { boolean } Check result. The value true is returned if the element exists; + * otherwise, false is returned. * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice * @since 12 */ /** - * Determines whether an array includes a certain element, returning true or false as appropriate. + * Checks whether elements are contained in this ArkTS Int16Array. * - * @param { number } searchElement - The element to search for. - * @param { number } [fromIndex] - The position in this array at which to begin searching for searchElement. - * @returns { boolean } A boolean value which is true if the value searchElement is found
- * within the typed array (or the part of the typed array indicated by the index fromIndex, if specified). + * @param { number } searchElement - Element to search for. + * @param { number } [fromIndex] - Index from which the search starts. If a negative number is passed in, + * it refers to the index of fromIndex + Int16Array.length. The default value is 0. + * @returns { boolean } Check result. The value true is returned if the element exists; + * otherwise, false is returned. * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -6942,14 +6959,14 @@ declare namespace collections { */ includes(searchElement: number, fromIndex?: number): boolean; /** - * Returns the item at that index. + * Returns the element at a given index in this Int16Array. * * @syscap SystemCapability.Utils.Lang * @atomicservice * @since 12 */ /** - * Returns the item at that index. + * Returns the element at a given index in this Int16Array. * * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -6958,11 +6975,12 @@ declare namespace collections { */ [index: number]: number; /** - * Find the last occurrence of a specified element in an Int16Array. + * Obtains the index of the last occurrence of the specified value in this ArkTS Int16Array. * * @param { number } searchElement - Element to search for in the Int16Array.. - * @param { number } fromIndex - The index at which to start the search. If provided: - *
If this index is negative, it is treated as Int16Array.length + fromIndex. + * @param { number } fromIndex - Index from which the search starts. The default value is 0. + * If the index is greater than or equal to the length of the ArkTS Int16Array, -1 is returned. + * If a negative number is passed in, the search starts from the end of the ArkTS Int16Array. * @returns { number } Returns the last index of the specified element if found; otherwise, returns -1. * @throws { BusinessError } 10200011 - The lastIndexOf method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. @@ -8025,7 +8043,7 @@ declare namespace collections { * Returns an iterable of key, value pairs for every entry in the array * * @returns { IterableIterator<[number, number]> } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The entries method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -8035,7 +8053,7 @@ declare namespace collections { * Returns an iterable of key, value pairs for every entry in the array * * @returns { IterableIterator<[number, number]> } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The entries method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -8047,7 +8065,7 @@ declare namespace collections { * Returns an iterable of keys in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The keys method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -8057,7 +8075,7 @@ declare namespace collections { * Returns an iterable of keys in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The keys method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -8069,7 +8087,7 @@ declare namespace collections { * Returns an iterable of values in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The values method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -8079,7 +8097,7 @@ declare namespace collections { * Returns an iterable of values in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The values method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -8095,7 +8113,7 @@ declare namespace collections { * @returns { boolean } A boolean value which is true if the value searchElement is found
* within the typed array (or the part of the typed array indicated by the index fromIndex, if specified). * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -8109,7 +8127,7 @@ declare namespace collections { * @returns { boolean } A boolean value which is true if the value searchElement is found
* within the typed array (or the part of the typed array indicated by the index fromIndex, if specified). * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -9203,7 +9221,7 @@ declare namespace collections { * Returns an iterable of key, value pairs for every entry in the array * * @returns { IterableIterator<[number, number]> } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The entries method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -9213,7 +9231,7 @@ declare namespace collections { * Returns an iterable of key, value pairs for every entry in the array * * @returns { IterableIterator<[number, number]> } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The entries method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -9225,7 +9243,7 @@ declare namespace collections { * Returns an iterable of keys in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The keys method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -9235,7 +9253,7 @@ declare namespace collections { * Returns an iterable of keys in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The keys method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -9247,7 +9265,7 @@ declare namespace collections { * Returns an iterable of values in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The values method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -9257,7 +9275,7 @@ declare namespace collections { * Returns an iterable of values in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The values method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -9273,7 +9291,7 @@ declare namespace collections { * @returns { boolean } A boolean value which is true if the value searchElement is found
* within the typed array (or the part of the typed array indicated by the index fromIndex, if specified). * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -9287,7 +9305,7 @@ declare namespace collections { * @returns { boolean } A boolean value which is true if the value searchElement is found
* within the typed array (or the part of the typed array indicated by the index fromIndex, if specified). * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -10379,7 +10397,7 @@ declare namespace collections { * Returns an iterable of key, value pairs for every entry in the array * * @returns { IterableIterator<[number, number]> } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The entries method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -10389,7 +10407,7 @@ declare namespace collections { * Returns an iterable of key, value pairs for every entry in the array * * @returns { IterableIterator<[number, number]> } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The entries method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -10401,7 +10419,7 @@ declare namespace collections { * Returns an iterable of keys in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The keys method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -10411,7 +10429,7 @@ declare namespace collections { * Returns an iterable of keys in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The keys method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -10423,7 +10441,7 @@ declare namespace collections { * Returns an iterable of values in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The values method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -10433,7 +10451,7 @@ declare namespace collections { * Returns an iterable of values in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The values method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -10449,7 +10467,7 @@ declare namespace collections { * @returns { boolean } A boolean value which is true if the value searchElement is found
* within the typed array (or the part of the typed array indicated by the index fromIndex, if specified). * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -10463,7 +10481,7 @@ declare namespace collections { * @returns { boolean } A boolean value which is true if the value searchElement is found
* within the typed array (or the part of the typed array indicated by the index fromIndex, if specified). * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -11525,7 +11543,7 @@ declare namespace collections { * Returns an iterable of key, value pairs for every entry in the array * * @returns { IterableIterator<[number, number]> } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The entries method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -11535,7 +11553,7 @@ declare namespace collections { * Returns an iterable of key, value pairs for every entry in the array * * @returns { IterableIterator<[number, number]> } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The entries method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -11547,7 +11565,7 @@ declare namespace collections { * Returns an iterable of keys in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The keys method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -11557,7 +11575,7 @@ declare namespace collections { * Returns an iterable of keys in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The keys method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -11569,7 +11587,7 @@ declare namespace collections { * Returns an iterable of values in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The values method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -11579,7 +11597,7 @@ declare namespace collections { * Returns an iterable of values in the array * * @returns { IterableIterator } A new iterable iterator object. - * @throws { BusinessError } 10200011 - The method cannot be bound. + * @throws { BusinessError } 10200011 - The values method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform @@ -11595,7 +11613,7 @@ declare namespace collections { * @returns { boolean } A boolean value which is true if the value searchElement is found
* within the typed array (or the part of the typed array indicated by the index fromIndex, if specified). * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @atomicservice @@ -11609,7 +11627,7 @@ declare namespace collections { * @returns { boolean } A boolean value which is true if the value searchElement is found
* within the typed array (or the part of the typed array indicated by the index fromIndex, if specified). * @throws { BusinessError } 401 - Parameter error. - * @throws { BusinessError } 10200011 - The at method cannot be bound. + * @throws { BusinessError } 10200011 - The includes method cannot be bound. * @throws { BusinessError } 10200201 - Concurrent modification error. * @syscap SystemCapability.Utils.Lang * @crossplatform