未验证 提交 b77ac727 编写于 作者: O openharmony_ci 提交者: Gitee

!11617 update container and buffer doc

Merge pull request !11617 from 刘甘霖/master
...@@ -26,7 +26,7 @@ import ArrayList from '@ohos.util.ArrayList'; ...@@ -26,7 +26,7 @@ import ArrayList from '@ohos.util.ArrayList';
**系统能力:** SystemCapability.Utils.Lang **系统能力:** SystemCapability.Utils.Lang
| 名称 | 参数类型 | 可读 | 可写 | 说明 | | 名称 | 类型 | 可读 | 可写 | 说明 |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| length | number | 是 | 否 | ArrayList的元素个数。 | | length | number | 是 | 否 | ArrayList的元素个数。 |
...@@ -43,7 +43,7 @@ ArrayList的构造函数。 ...@@ -43,7 +43,7 @@ ArrayList的构造函数。
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200012 | The ArrayList's constructor cannot be directly invoked. | | 10200012 | The ArrayList's constructor cannot be directly invoked. |
...@@ -83,7 +83,7 @@ add(element: T): boolean ...@@ -83,7 +83,7 @@ add(element: T): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The add method cannot be bound. | | 10200011 | The add method cannot be bound. |
...@@ -124,7 +124,7 @@ insert(element: T, index: number): void ...@@ -124,7 +124,7 @@ insert(element: T, index: number): void
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The insert method cannot be bound. | | 10200011 | The insert method cannot be bound. |
| 10200001 | The value of parameters are out of range. | | 10200001 | The value of parameters are out of range. |
...@@ -177,7 +177,7 @@ has(element: T): boolean ...@@ -177,7 +177,7 @@ has(element: T): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The has method cannot be bound. | | 10200011 | The has method cannot be bound. |
...@@ -219,7 +219,7 @@ getIndexOf(element: T): number ...@@ -219,7 +219,7 @@ getIndexOf(element: T): number
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The getIndexOf method cannot be bound. | | 10200011 | The getIndexOf method cannot be bound. |
...@@ -266,7 +266,7 @@ getLastIndexOf(element: T): number ...@@ -266,7 +266,7 @@ getLastIndexOf(element: T): number
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The getLastIndexOf method cannot be bound. | | 10200011 | The getLastIndexOf method cannot be bound. |
...@@ -313,7 +313,7 @@ removeByIndex(index: number): T ...@@ -313,7 +313,7 @@ removeByIndex(index: number): T
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The removeByIndex method cannot be bound. | | 10200011 | The removeByIndex method cannot be bound. |
| 10200001 | The value of parameters are out of range. | | 10200001 | The value of parameters are out of range. |
...@@ -369,7 +369,7 @@ remove(element: T): boolean ...@@ -369,7 +369,7 @@ remove(element: T): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The remove method cannot be bound. | | 10200011 | The remove method cannot be bound. |
...@@ -408,7 +408,7 @@ removeByRange(fromIndex: number, toIndex: number): void ...@@ -408,7 +408,7 @@ removeByRange(fromIndex: number, toIndex: number): void
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The removeByRange method cannot be bound. | | 10200011 | The removeByRange method cannot be bound. |
| 10200001 | The value of parameters are out of range. | | 10200001 | The value of parameters are out of range. |
...@@ -462,7 +462,7 @@ callbackfn的参数说明: ...@@ -462,7 +462,7 @@ callbackfn的参数说明:
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The replaceAllElements method cannot be bound. | | 10200011 | The replaceAllElements method cannot be bound. |
...@@ -517,7 +517,7 @@ callbackfn的参数说明: ...@@ -517,7 +517,7 @@ callbackfn的参数说明:
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The forEach method cannot be bound. | | 10200011 | The forEach method cannot be bound. |
...@@ -566,7 +566,7 @@ comparator的参数说明: ...@@ -566,7 +566,7 @@ comparator的参数说明:
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The sort method cannot be bound. | | 10200011 | The sort method cannot be bound. |
...@@ -613,7 +613,7 @@ subArrayList(fromIndex: number, toIndex: number): ArrayList<T> ...@@ -613,7 +613,7 @@ subArrayList(fromIndex: number, toIndex: number): ArrayList<T>
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The subArrayList method cannot be bound. | | 10200011 | The subArrayList method cannot be bound. |
| 10200001 | The value of parameters are out of range. | | 10200001 | The value of parameters are out of range. |
...@@ -653,7 +653,7 @@ clear(): void ...@@ -653,7 +653,7 @@ clear(): void
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The clear method cannot be bound. | | 10200011 | The clear method cannot be bound. |
...@@ -692,7 +692,7 @@ clone(): ArrayList<T> ...@@ -692,7 +692,7 @@ clone(): ArrayList<T>
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The clone method cannot be bound. | | 10200011 | The clone method cannot be bound. |
...@@ -730,7 +730,7 @@ getCapacity(): number ...@@ -730,7 +730,7 @@ getCapacity(): number
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The getCapacity method cannot be bound. | | 10200011 | The getCapacity method cannot be bound. |
...@@ -768,7 +768,7 @@ convertToArray(): Array<T> ...@@ -768,7 +768,7 @@ convertToArray(): Array<T>
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The convertToArray method cannot be bound. | | 10200011 | The convertToArray method cannot be bound. |
...@@ -806,7 +806,7 @@ isEmpty(): boolean ...@@ -806,7 +806,7 @@ isEmpty(): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The isEmpty method cannot be bound. | | 10200011 | The isEmpty method cannot be bound. |
...@@ -844,7 +844,7 @@ increaseCapacityTo(newCapacity: number): void ...@@ -844,7 +844,7 @@ increaseCapacityTo(newCapacity: number): void
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The increaseCapacityTo method cannot be bound. | | 10200011 | The increaseCapacityTo method cannot be bound. |
...@@ -877,7 +877,7 @@ trimToCurrentLength(): void ...@@ -877,7 +877,7 @@ trimToCurrentLength(): void
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The trimToCurrentLength method cannot be bound. | | 10200011 | The trimToCurrentLength method cannot be bound. |
...@@ -915,7 +915,7 @@ try { ...@@ -915,7 +915,7 @@ try {
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The Symbol.iterator method cannot be bound. | | 10200011 | The Symbol.iterator method cannot be bound. |
......
...@@ -19,7 +19,7 @@ import buffer from '@ohos.buffer'; ...@@ -19,7 +19,7 @@ import buffer from '@ohos.buffer';
**系统能力:** SystemCapability.Utils.Lang **系统能力:** SystemCapability.Utils.Lang
| 名称 | 参数类型 | 可读 | 可写 | 说明 | | 名称 | 类型 | 可读 | 可写 | 说明 |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| length | number | 是 | 否 | buffer的字节长度。 | | length | number | 是 | 否 | buffer的字节长度。 |
| buffer | ArrayBuffer | 是 | 否 | ArrayBuffer对象。 | | buffer | ArrayBuffer | 是 | 否 | ArrayBuffer对象。 |
...@@ -29,7 +29,7 @@ import buffer from '@ohos.buffer'; ...@@ -29,7 +29,7 @@ import buffer from '@ohos.buffer';
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200013 | Cannot set property ${propertyName} of Buffer which has only a getter. | | 10200013 | Cannot set property ${propertyName} of Buffer which has only a getter. |
...@@ -271,7 +271,7 @@ concat(list: Buffer[] | Uint8Array[], totalLength?: number): Buffer ...@@ -271,7 +271,7 @@ concat(list: Buffer[] | Uint8Array[], totalLength?: number): Buffer
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "totalLength" is out of range. | | 10200001 | The value of "totalLength" is out of range. |
...@@ -359,7 +359,7 @@ from(arrayBuffer: ArrayBuffer | SharedArrayBuffer, byteOffset?: number, length?: ...@@ -359,7 +359,7 @@ from(arrayBuffer: ArrayBuffer | SharedArrayBuffer, byteOffset?: number, length?:
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "[byteOffset/length]" is out of range. | | 10200001 | The value of "[byteOffset/length]" is out of range. |
...@@ -433,8 +433,8 @@ from(object: Object, offsetOrEncoding: number | string, length: number): Buffer ...@@ -433,8 +433,8 @@ from(object: Object, offsetOrEncoding: number | string, length: number): Buffer
| 参数名 | 类型 | 必填 | 说明 | | 参数名 | 类型 | 必填 | 说明 |
| -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- |
| object | Object | 是 | 支持Symbol.toPrimitive或valueOf()的对象 | | object | Object | 是 | 支持Symbol.toPrimitive或valueOf()的对象 |
| offsetOrEncoding | number \| string | | 字节偏移量或编码。 | | offsetOrEncoding | number \| string | | 字节偏移量或编码。 |
| length | number | | 字节长度。 | | length | number | | 字节长度。 |
**返回值:** **返回值:**
...@@ -630,7 +630,7 @@ copy(target: Buffer| Uint8Array, targetStart?: number, sourceStart?: number, sou ...@@ -630,7 +630,7 @@ copy(target: Buffer| Uint8Array, targetStart?: number, sourceStart?: number, sou
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "[targetStart/sourceStart/sourceEnd]" is out of range. | | 10200001 | The value of "[targetStart/sourceStart/sourceEnd]" is out of range. |
...@@ -751,7 +751,7 @@ fill(value: string | Buffer | Uint8Array | number, offset?: number, end?: number ...@@ -751,7 +751,7 @@ fill(value: string | Buffer | Uint8Array | number, offset?: number, end?: number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "[offset/end]" is out of range. | | 10200001 | The value of "[offset/end]" is out of range. |
...@@ -951,7 +951,7 @@ readBigInt64BE(offset?: number): bigint ...@@ -951,7 +951,7 @@ readBigInt64BE(offset?: number): bigint
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "offset" is out of range. | | 10200001 | The value of "offset" is out of range. |
...@@ -997,7 +997,7 @@ readBigInt64LE(offset?: number): bigint ...@@ -997,7 +997,7 @@ readBigInt64LE(offset?: number): bigint
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "offset" is out of range. | | 10200001 | The value of "offset" is out of range. |
...@@ -1043,7 +1043,7 @@ readBigUInt64BE(offset?: number): bigint ...@@ -1043,7 +1043,7 @@ readBigUInt64BE(offset?: number): bigint
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "offset" is out of range. | | 10200001 | The value of "offset" is out of range. |
...@@ -1089,7 +1089,7 @@ readBigUInt64LE(offset?: number): bigint ...@@ -1089,7 +1089,7 @@ readBigUInt64LE(offset?: number): bigint
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "offset" is out of range. | | 10200001 | The value of "offset" is out of range. |
...@@ -1135,7 +1135,7 @@ readDoubleBE(offset?: number): number ...@@ -1135,7 +1135,7 @@ readDoubleBE(offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "offset" is out of range. | | 10200001 | The value of "offset" is out of range. |
...@@ -1180,7 +1180,7 @@ readDoubleLE(offset?: number): number ...@@ -1180,7 +1180,7 @@ readDoubleLE(offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "offset" is out of range. | | 10200001 | The value of "offset" is out of range. |
...@@ -1225,7 +1225,7 @@ readFloatBE(offset?: number): number ...@@ -1225,7 +1225,7 @@ readFloatBE(offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "offset" is out of range. | | 10200001 | The value of "offset" is out of range. |
...@@ -1270,7 +1270,7 @@ readFloatLE(offset?: number): number ...@@ -1270,7 +1270,7 @@ readFloatLE(offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "offset" is out of range. | | 10200001 | The value of "offset" is out of range. |
...@@ -1315,7 +1315,7 @@ readInt8(offset?: number): number ...@@ -1315,7 +1315,7 @@ readInt8(offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "offset" is out of range. | | 10200001 | The value of "offset" is out of range. |
...@@ -1361,7 +1361,7 @@ readInt16BE(offset?: number): number ...@@ -1361,7 +1361,7 @@ readInt16BE(offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "offset" is out of range. | | 10200001 | The value of "offset" is out of range. |
...@@ -1406,7 +1406,7 @@ readInt16LE(offset?: number): number ...@@ -1406,7 +1406,7 @@ readInt16LE(offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "offset" is out of range. | | 10200001 | The value of "offset" is out of range. |
...@@ -1451,7 +1451,7 @@ readInt32BE(offset?: number): number ...@@ -1451,7 +1451,7 @@ readInt32BE(offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "offset" is out of range. | | 10200001 | The value of "offset" is out of range. |
...@@ -1496,7 +1496,7 @@ readInt32LE(offset?: number): number ...@@ -1496,7 +1496,7 @@ readInt32LE(offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "offset" is out of range. | | 10200001 | The value of "offset" is out of range. |
...@@ -1543,7 +1543,7 @@ readIntBE(offset: number, byteLength: number): number ...@@ -1543,7 +1543,7 @@ readIntBE(offset: number, byteLength: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "[offset/byteLength]" is out of range. | | 10200001 | The value of "[offset/byteLength]" is out of range. |
...@@ -1592,7 +1592,7 @@ readIntLE(offset: number, byteLength: number): number ...@@ -1592,7 +1592,7 @@ readIntLE(offset: number, byteLength: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "[offset/byteLength]" is out of range. | | 10200001 | The value of "[offset/byteLength]" is out of range. |
...@@ -1638,7 +1638,7 @@ readUInt8(offset?: number): number ...@@ -1638,7 +1638,7 @@ readUInt8(offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "offset" is out of range. | | 10200001 | The value of "offset" is out of range. |
...@@ -1685,7 +1685,7 @@ readUInt16BE(offset?: number): number ...@@ -1685,7 +1685,7 @@ readUInt16BE(offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "offset" is out of range. | | 10200001 | The value of "offset" is out of range. |
...@@ -1732,7 +1732,7 @@ readUInt16LE(offset?: number): number ...@@ -1732,7 +1732,7 @@ readUInt16LE(offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "offset" is out of range. | | 10200001 | The value of "offset" is out of range. |
...@@ -1779,7 +1779,7 @@ readUInt32BE(offset?: number): number ...@@ -1779,7 +1779,7 @@ readUInt32BE(offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "offset" is out of range. | | 10200001 | The value of "offset" is out of range. |
...@@ -1825,7 +1825,7 @@ readUInt32LE(offset?: number): number ...@@ -1825,7 +1825,7 @@ readUInt32LE(offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "offset" is out of range. | | 10200001 | The value of "offset" is out of range. |
...@@ -1872,7 +1872,7 @@ readUIntBE(offset: number, byteLength: number): number ...@@ -1872,7 +1872,7 @@ readUIntBE(offset: number, byteLength: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "[offset/byteLength]" is out of range. | | 10200001 | The value of "[offset/byteLength]" is out of range. |
...@@ -1919,7 +1919,7 @@ readUIntLE(offset: number, byteLength: number): number ...@@ -1919,7 +1919,7 @@ readUIntLE(offset: number, byteLength: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "[offset/byteLength]" is out of range. | | 10200001 | The value of "[offset/byteLength]" is out of range. |
...@@ -1995,7 +1995,7 @@ swap16(): Buffer ...@@ -1995,7 +1995,7 @@ swap16(): Buffer
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200009 | Buffer size must be a multiple of 16-bits | | 10200009 | Buffer size must be a multiple of 16-bits |
...@@ -2037,7 +2037,7 @@ swap32(): Buffer ...@@ -2037,7 +2037,7 @@ swap32(): Buffer
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200009 | Buffer size must be a multiple of 32-bits | | 10200009 | Buffer size must be a multiple of 32-bits |
...@@ -2079,7 +2079,7 @@ swap64(): Buffer ...@@ -2079,7 +2079,7 @@ swap64(): Buffer
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200009 | Buffer size must be a multiple of 64-bits | | 10200009 | Buffer size must be a multiple of 64-bits |
...@@ -2196,7 +2196,7 @@ for (let value of buf1.values()) { ...@@ -2196,7 +2196,7 @@ for (let value of buf1.values()) {
### write ### write
write(str: string, offset?: number, length?: number, encoding?: string): number write(str: string, offset?: number, length?: number, encoding?: BufferEncoding): number
从buf的offset偏移写入指定编码的字符串str,写入的字节长度为length 从buf的offset偏移写入指定编码的字符串str,写入的字节长度为length
...@@ -2222,7 +2222,7 @@ write(str: string, offset?: number, length?: number, encoding?: string): number ...@@ -2222,7 +2222,7 @@ write(str: string, offset?: number, length?: number, encoding?: string): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "[offset/length]" is out of range. | | 10200001 | The value of "[offset/length]" is out of range. |
...@@ -2287,7 +2287,7 @@ writeBigInt64BE(value: bigint, offset?: number): number ...@@ -2287,7 +2287,7 @@ writeBigInt64BE(value: bigint, offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. | | 10200001 | The value of "[value/offset]" is out of range. |
...@@ -2333,7 +2333,7 @@ writeBigInt64LE(value: bigint, offset?: number): number ...@@ -2333,7 +2333,7 @@ writeBigInt64LE(value: bigint, offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. | | 10200001 | The value of "[value/offset]" is out of range. |
...@@ -2379,7 +2379,7 @@ writeBigUInt64BE(value: bigint, offset?: number): number ...@@ -2379,7 +2379,7 @@ writeBigUInt64BE(value: bigint, offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. | | 10200001 | The value of "[value/offset]" is out of range. |
...@@ -2425,7 +2425,7 @@ writeBigUInt64LE(value: bigint, offset?: number): number ...@@ -2425,7 +2425,7 @@ writeBigUInt64LE(value: bigint, offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. | | 10200001 | The value of "[value/offset]" is out of range. |
...@@ -2471,7 +2471,7 @@ writeDoubleBE(value: number, offset?: number): number ...@@ -2471,7 +2471,7 @@ writeDoubleBE(value: number, offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. | | 10200001 | The value of "[value/offset]" is out of range. |
...@@ -2517,7 +2517,7 @@ writeDoubleLE(value: number, offset?: number): number ...@@ -2517,7 +2517,7 @@ writeDoubleLE(value: number, offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. | | 10200001 | The value of "[value/offset]" is out of range. |
...@@ -2563,7 +2563,7 @@ writeFloatBE(value: number, offset?: number): number ...@@ -2563,7 +2563,7 @@ writeFloatBE(value: number, offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. | | 10200001 | The value of "[value/offset]" is out of range. |
...@@ -2610,7 +2610,7 @@ writeFloatLE(value: number, offset?: number): number ...@@ -2610,7 +2610,7 @@ writeFloatLE(value: number, offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. | | 10200001 | The value of "[value/offset]" is out of range. |
...@@ -2656,7 +2656,7 @@ writeInt8(value: number, offset?: number): number ...@@ -2656,7 +2656,7 @@ writeInt8(value: number, offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. | | 10200001 | The value of "[value/offset]" is out of range. |
...@@ -2704,7 +2704,7 @@ writeInt16BE(value: number, offset?: number): number ...@@ -2704,7 +2704,7 @@ writeInt16BE(value: number, offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. | | 10200001 | The value of "[value/offset]" is out of range. |
...@@ -2751,7 +2751,7 @@ writeInt16LE(value: number, offset?: number): number ...@@ -2751,7 +2751,7 @@ writeInt16LE(value: number, offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. | | 10200001 | The value of "[value/offset]" is out of range. |
...@@ -2797,7 +2797,7 @@ writeInt32BE(value: number, offset?: number): number ...@@ -2797,7 +2797,7 @@ writeInt32BE(value: number, offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. | | 10200001 | The value of "[value/offset]" is out of range. |
...@@ -2844,7 +2844,7 @@ writeInt32LE(value: number, offset?: number): number ...@@ -2844,7 +2844,7 @@ writeInt32LE(value: number, offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. | | 10200001 | The value of "[value/offset]" is out of range. |
...@@ -2891,7 +2891,7 @@ writeIntBE(value: number, offset: number, byteLength: number): number ...@@ -2891,7 +2891,7 @@ writeIntBE(value: number, offset: number, byteLength: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "[value/offset/byteLength]" is out of range. | | 10200001 | The value of "[value/offset/byteLength]" is out of range. |
...@@ -2939,7 +2939,7 @@ writeIntLE(value: number, offset: number, byteLength: number): number ...@@ -2939,7 +2939,7 @@ writeIntLE(value: number, offset: number, byteLength: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "[value/offset/byteLength]" is out of range. | | 10200001 | The value of "[value/offset/byteLength]" is out of range. |
...@@ -2985,7 +2985,7 @@ writeUInt8(value: number, offset?: number): number ...@@ -2985,7 +2985,7 @@ writeUInt8(value: number, offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. | | 10200001 | The value of "[value/offset]" is out of range. |
...@@ -3034,7 +3034,7 @@ writeUInt16BE(value: number, offset?: number): number ...@@ -3034,7 +3034,7 @@ writeUInt16BE(value: number, offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. | | 10200001 | The value of "[value/offset]" is out of range. |
...@@ -3081,7 +3081,7 @@ writeUInt16LE(value: number, offset?: number): number ...@@ -3081,7 +3081,7 @@ writeUInt16LE(value: number, offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. | | 10200001 | The value of "[value/offset]" is out of range. |
...@@ -3128,7 +3128,7 @@ writeUInt32BE(value: number, offset?: number): number ...@@ -3128,7 +3128,7 @@ writeUInt32BE(value: number, offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. | | 10200001 | The value of "[value/offset]" is out of range. |
...@@ -3174,7 +3174,7 @@ writeUInt32LE(value: number, offset?: number): number ...@@ -3174,7 +3174,7 @@ writeUInt32LE(value: number, offset?: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "[value/offset]" is out of range. | | 10200001 | The value of "[value/offset]" is out of range. |
...@@ -3221,7 +3221,7 @@ writeUIntBE(value: number, offset: number, byteLength: number): number ...@@ -3221,7 +3221,7 @@ writeUIntBE(value: number, offset: number, byteLength: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "[value/offset/byteLength]" is out of range. | | 10200001 | The value of "[value/offset/byteLength]" is out of range. |
...@@ -3268,7 +3268,7 @@ writeUIntLE(value: number, offset: number, byteLength: number): number ...@@ -3268,7 +3268,7 @@ writeUIntLE(value: number, offset: number, byteLength: number): number
以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md) 以下错误码的详细介绍请参见[buffer错误码](../errorcodes/errorcode-buffer.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200001 | The value of "[value/offset/byteLength]" is out of range. | | 10200001 | The value of "[value/offset/byteLength]" is out of range. |
...@@ -3345,7 +3345,7 @@ try { ...@@ -3345,7 +3345,7 @@ try {
**系统能力:** SystemCapability.Utils.Lang **系统能力:** SystemCapability.Utils.Lang
| 名称 | 参数类型 | 可读 | 可写 | 说明 | | 名称 | 类型 | 可读 | 可写 | 说明 |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| size | number | 是 | 否 | Blob实例的总字节大小。 | | size | number | 是 | 否 | Blob实例的总字节大小。 |
| type | string | 是 | 否 | Blob实例的内容类型。 | | type | string | 是 | 否 | Blob实例的内容类型。 |
......
...@@ -26,7 +26,7 @@ import Deque from '@ohos.util.Deque'; ...@@ -26,7 +26,7 @@ import Deque from '@ohos.util.Deque';
**系统能力:** SystemCapability.Utils.Lang **系统能力:** SystemCapability.Utils.Lang
| 名称 | 参数类型 | 可读 | 可写 | 说明 | | 名称 | 类型 | 可读 | 可写 | 说明 |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| length | number | 是 | 否 | Deque的元素个数。 | | length | number | 是 | 否 | Deque的元素个数。 |
...@@ -42,7 +42,7 @@ Deque的构造函数。 ...@@ -42,7 +42,7 @@ Deque的构造函数。
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200012 | The Deque's constructor cannot be directly invoked. | | 10200012 | The Deque's constructor cannot be directly invoked. |
...@@ -75,7 +75,7 @@ insertFront(element: T): void ...@@ -75,7 +75,7 @@ insertFront(element: T): void
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The insertFront method cannot be bound. | | 10200011 | The insertFront method cannot be bound. |
...@@ -115,7 +115,7 @@ insertEnd(element: T): void ...@@ -115,7 +115,7 @@ insertEnd(element: T): void
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The insertEnd method cannot be bound. | | 10200011 | The insertEnd method cannot be bound. |
...@@ -161,7 +161,7 @@ has(element: T): boolean ...@@ -161,7 +161,7 @@ has(element: T): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The has method cannot be bound. | | 10200011 | The has method cannot be bound. |
...@@ -197,7 +197,7 @@ popFirst(): T ...@@ -197,7 +197,7 @@ popFirst(): T
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The popFirst method cannot be bound. | | 10200011 | The popFirst method cannot be bound. |
...@@ -236,7 +236,7 @@ popLast(): T ...@@ -236,7 +236,7 @@ popLast(): T
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The popLast method cannot be bound. | | 10200011 | The popLast method cannot be bound. |
...@@ -285,7 +285,7 @@ callbackfn的参数说明: ...@@ -285,7 +285,7 @@ callbackfn的参数说明:
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The forEach method cannot be bound. | | 10200011 | The forEach method cannot be bound. |
...@@ -327,7 +327,7 @@ getFirst(): T ...@@ -327,7 +327,7 @@ getFirst(): T
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The getFirst method cannot be bound. | | 10200011 | The getFirst method cannot be bound. |
...@@ -365,7 +365,7 @@ getLast(): T ...@@ -365,7 +365,7 @@ getLast(): T
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The getLast method cannot be bound. | | 10200011 | The getLast method cannot be bound. |
...@@ -403,7 +403,7 @@ try { ...@@ -403,7 +403,7 @@ try {
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The Symbol.iterator method cannot be bound. | | 10200011 | The Symbol.iterator method cannot be bound. |
......
...@@ -27,7 +27,7 @@ import HashMap from '@ohos.util.HashMap'; ...@@ -27,7 +27,7 @@ import HashMap from '@ohos.util.HashMap';
**系统能力:** SystemCapability.Utils.Lang **系统能力:** SystemCapability.Utils.Lang
| 名称 | 参数类型 | 可读 | 可写 | 说明 | | 名称 | 类型 | 可读 | 可写 | 说明 |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| length | number | 是 | 否 | HashMap的元素个数。 | | length | number | 是 | 否 | HashMap的元素个数。 |
...@@ -44,7 +44,7 @@ HashMap的构造函数。 ...@@ -44,7 +44,7 @@ HashMap的构造函数。
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200012 | The HashMap's constructor cannot be directly invoked. | | 10200012 | The HashMap's constructor cannot be directly invoked. |
...@@ -78,7 +78,7 @@ isEmpty(): boolean ...@@ -78,7 +78,7 @@ isEmpty(): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The isEmpty method cannot be bound. | | 10200011 | The isEmpty method cannot be bound. |
...@@ -119,7 +119,7 @@ hasKey(key: K): boolean ...@@ -119,7 +119,7 @@ hasKey(key: K): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The hasKey method cannot be bound. | | 10200011 | The hasKey method cannot be bound. |
...@@ -162,7 +162,7 @@ hasValue(value: V): boolean ...@@ -162,7 +162,7 @@ hasValue(value: V): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The hasValue method cannot be bound. | | 10200011 | The hasValue method cannot be bound. |
...@@ -205,7 +205,7 @@ get(key: K): V ...@@ -205,7 +205,7 @@ get(key: K): V
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The get method cannot be bound. | | 10200011 | The get method cannot be bound. |
...@@ -242,7 +242,7 @@ setAll(map: HashMap<K, V>): void ...@@ -242,7 +242,7 @@ setAll(map: HashMap<K, V>): void
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The setAll method cannot be bound. | | 10200011 | The setAll method cannot be bound. |
...@@ -287,7 +287,7 @@ set(key: K, value: V): Object ...@@ -287,7 +287,7 @@ set(key: K, value: V): Object
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The set method cannot be bound. | | 10200011 | The set method cannot be bound. |
...@@ -328,7 +328,7 @@ remove(key: K): V ...@@ -328,7 +328,7 @@ remove(key: K): V
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The remove method cannot be bound. | | 10200011 | The remove method cannot be bound. |
...@@ -359,7 +359,7 @@ clear(): void ...@@ -359,7 +359,7 @@ clear(): void
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The clear method cannot be bound. | | 10200011 | The clear method cannot be bound. |
...@@ -396,7 +396,7 @@ keys(): IterableIterator&lt;K&gt; ...@@ -396,7 +396,7 @@ keys(): IterableIterator&lt;K&gt;
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The keys method cannot be bound. | | 10200011 | The keys method cannot be bound. |
...@@ -438,7 +438,7 @@ values(): IterableIterator&lt;V&gt; ...@@ -438,7 +438,7 @@ values(): IterableIterator&lt;V&gt;
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The values method cannot be bound. | | 10200011 | The values method cannot be bound. |
...@@ -487,7 +487,7 @@ replace(key: K, newValue: V): boolean ...@@ -487,7 +487,7 @@ replace(key: K, newValue: V): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The replace method cannot be bound. | | 10200011 | The replace method cannot be bound. |
...@@ -531,7 +531,7 @@ callbackfn的参数说明: ...@@ -531,7 +531,7 @@ callbackfn的参数说明:
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The forEach method cannot be bound. | | 10200011 | The forEach method cannot be bound. |
...@@ -572,7 +572,7 @@ entries(): IterableIterator&lt;[K, V]&gt; ...@@ -572,7 +572,7 @@ entries(): IterableIterator&lt;[K, V]&gt;
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The entries method cannot be bound. | | 10200011 | The entries method cannot be bound. |
...@@ -615,7 +615,7 @@ try { ...@@ -615,7 +615,7 @@ try {
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The Symbol.iterator method cannot be bound. | | 10200011 | The Symbol.iterator method cannot be bound. |
......
...@@ -24,7 +24,7 @@ import HashSet from '@ohos.util.HashSet'; ...@@ -24,7 +24,7 @@ import HashSet from '@ohos.util.HashSet';
**系统能力:** SystemCapability.Utils.Lang **系统能力:** SystemCapability.Utils.Lang
| 名称 | 参数类型 | 可读 | 可写 | 说明 | | 名称 | 类型 | 可读 | 可写 | 说明 |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| length | number | 是 | 否 | HashSet的元素个数。 | | length | number | 是 | 否 | HashSet的元素个数。 |
...@@ -52,7 +52,7 @@ HashSet的构造函数。 ...@@ -52,7 +52,7 @@ HashSet的构造函数。
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200012 | The HashSet's constructor cannot be directly invoked. | | 10200012 | The HashSet's constructor cannot be directly invoked. |
...@@ -86,7 +86,7 @@ isEmpty(): boolean ...@@ -86,7 +86,7 @@ isEmpty(): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The isEmpty method cannot be bound. | | 10200011 | The isEmpty method cannot be bound. |
...@@ -127,7 +127,7 @@ has(value: T): boolean ...@@ -127,7 +127,7 @@ has(value: T): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The has method cannot be bound. | | 10200011 | The has method cannot be bound. |
...@@ -170,7 +170,7 @@ add(value: T): boolean ...@@ -170,7 +170,7 @@ add(value: T): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The add method cannot be bound. | | 10200011 | The add method cannot be bound. |
...@@ -211,7 +211,7 @@ remove(value: T): boolean ...@@ -211,7 +211,7 @@ remove(value: T): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The remove method cannot be bound. | | 10200011 | The remove method cannot be bound. |
...@@ -242,7 +242,7 @@ clear(): void ...@@ -242,7 +242,7 @@ clear(): void
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The clear method cannot be bound. | | 10200011 | The clear method cannot be bound. |
...@@ -279,7 +279,7 @@ values(): IterableIterator&lt;T&gt; ...@@ -279,7 +279,7 @@ values(): IterableIterator&lt;T&gt;
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The values method cannot be bound. | | 10200011 | The values method cannot be bound. |
...@@ -329,7 +329,7 @@ callbackfn的参数说明: ...@@ -329,7 +329,7 @@ callbackfn的参数说明:
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The forEach method cannot be bound. | | 10200011 | The forEach method cannot be bound. |
...@@ -369,7 +369,7 @@ entries(): IterableIterator<[T, T]> ...@@ -369,7 +369,7 @@ entries(): IterableIterator<[T, T]>
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The entries method cannot be bound. | | 10200011 | The entries method cannot be bound. |
...@@ -412,7 +412,7 @@ try { ...@@ -412,7 +412,7 @@ try {
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The Symbol.iterator method cannot be bound. | | 10200011 | The Symbol.iterator method cannot be bound. |
......
...@@ -29,7 +29,7 @@ import LightWeightMap from '@ohos.util.LightWeightMap'; ...@@ -29,7 +29,7 @@ import LightWeightMap from '@ohos.util.LightWeightMap';
**系统能力:** SystemCapability.Utils.Lang **系统能力:** SystemCapability.Utils.Lang
| 名称 | 参数类型 | 可读 | 可写 | 说明 | | 名称 | 类型 | 可读 | 可写 | 说明 |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| length | number | 是 | 否 | LightWeightMap的元素个数。 | | length | number | 是 | 否 | LightWeightMap的元素个数。 |
...@@ -47,7 +47,7 @@ LightWeightMap的构造函数。 ...@@ -47,7 +47,7 @@ LightWeightMap的构造函数。
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200012 | The LightWeightMap's constructor cannot be directly invoked. | | 10200012 | The LightWeightMap's constructor cannot be directly invoked. |
...@@ -81,7 +81,7 @@ isEmpty(): boolean ...@@ -81,7 +81,7 @@ isEmpty(): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The isEmpty method cannot be bound. | | 10200011 | The isEmpty method cannot be bound. |
...@@ -122,7 +122,7 @@ hasAll(map: LightWeightMap<K, V>): boolean ...@@ -122,7 +122,7 @@ hasAll(map: LightWeightMap<K, V>): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The hasAll method cannot be bound. | | 10200011 | The hasAll method cannot be bound. |
...@@ -167,7 +167,7 @@ hasKey(key: K): boolean; ...@@ -167,7 +167,7 @@ hasKey(key: K): boolean;
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The hasKey method cannot be bound. | | 10200011 | The hasKey method cannot be bound. |
...@@ -211,7 +211,7 @@ hasValue(value: V): boolean ...@@ -211,7 +211,7 @@ hasValue(value: V): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The hasValue method cannot be bound. | | 10200011 | The hasValue method cannot be bound. |
...@@ -242,7 +242,7 @@ increaseCapacityTo(minimumCapacity: number): void ...@@ -242,7 +242,7 @@ increaseCapacityTo(minimumCapacity: number): void
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The increaseCapacityTo method cannot be bound. | | 10200011 | The increaseCapacityTo method cannot be bound. |
...@@ -289,7 +289,7 @@ get(key: K): V ...@@ -289,7 +289,7 @@ get(key: K): V
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The get method cannot be bound. | | 10200011 | The get method cannot be bound. |
...@@ -332,7 +332,7 @@ getIndexOfKey(key: K): number ...@@ -332,7 +332,7 @@ getIndexOfKey(key: K): number
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The getIndexOfKey method cannot be bound. | | 10200011 | The getIndexOfKey method cannot be bound. |
...@@ -375,7 +375,7 @@ getIndexOfValue(value: V): number ...@@ -375,7 +375,7 @@ getIndexOfValue(value: V): number
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The getIndexOfValue method cannot be bound. | | 10200011 | The getIndexOfValue method cannot be bound. |
...@@ -418,7 +418,7 @@ getKeyAt(index: number): K ...@@ -418,7 +418,7 @@ getKeyAt(index: number): K
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The getKeyAt method cannot be bound. | | 10200011 | The getKeyAt method cannot be bound. |
| 10200001 | The value of parameters are out of range. | | 10200001 | The value of parameters are out of range. |
...@@ -461,7 +461,7 @@ setAll(map: LightWeightMap<K, V>): void ...@@ -461,7 +461,7 @@ setAll(map: LightWeightMap<K, V>): void
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The setAll method cannot be bound. | | 10200011 | The setAll method cannot be bound. |
...@@ -505,7 +505,7 @@ set(key: K, value: V): Object ...@@ -505,7 +505,7 @@ set(key: K, value: V): Object
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The set method cannot be bound. | | 10200011 | The set method cannot be bound. |
...@@ -546,7 +546,7 @@ remove(key: K): V ...@@ -546,7 +546,7 @@ remove(key: K): V
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The remove method cannot be bound. | | 10200011 | The remove method cannot be bound. |
...@@ -589,7 +589,7 @@ removeAt(index: number): boolean ...@@ -589,7 +589,7 @@ removeAt(index: number): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The removeAt method cannot be bound. | | 10200011 | The removeAt method cannot be bound. |
...@@ -633,7 +633,7 @@ setValueAt(index: number, newValue: V): boolean ...@@ -633,7 +633,7 @@ setValueAt(index: number, newValue: V): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The setValueAt method cannot be bound. | | 10200011 | The setValueAt method cannot be bound. |
| 10200001 | The value of parameters are out of range. | | 10200001 | The value of parameters are out of range. |
...@@ -682,7 +682,7 @@ getValueAt(index: number): V ...@@ -682,7 +682,7 @@ getValueAt(index: number): V
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The getValueAt method cannot be bound. | | 10200011 | The getValueAt method cannot be bound. |
| 10200001 | The value of parameters are out of range. | | 10200001 | The value of parameters are out of range. |
...@@ -719,7 +719,7 @@ clear(): void ...@@ -719,7 +719,7 @@ clear(): void
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The clear method cannot be bound. | | 10200011 | The clear method cannot be bound. |
...@@ -756,7 +756,7 @@ keys(): IterableIterator&lt;K&gt; ...@@ -756,7 +756,7 @@ keys(): IterableIterator&lt;K&gt;
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The keys method cannot be bound. | | 10200011 | The keys method cannot be bound. |
...@@ -798,7 +798,7 @@ values(): IterableIterator&lt;V&gt; ...@@ -798,7 +798,7 @@ values(): IterableIterator&lt;V&gt;
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The values method cannot be bound. | | 10200011 | The values method cannot be bound. |
...@@ -848,7 +848,7 @@ callbackfn的参数说明: ...@@ -848,7 +848,7 @@ callbackfn的参数说明:
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The forEach method cannot be bound. | | 10200011 | The forEach method cannot be bound. |
...@@ -889,7 +889,7 @@ entries(): IterableIterator<[K, V]> ...@@ -889,7 +889,7 @@ entries(): IterableIterator<[K, V]>
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The entries method cannot be bound. | | 10200011 | The entries method cannot be bound. |
...@@ -931,7 +931,7 @@ toString(): String ...@@ -931,7 +931,7 @@ toString(): String
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The toString method cannot be bound. | | 10200011 | The toString method cannot be bound. |
...@@ -967,7 +967,7 @@ try { ...@@ -967,7 +967,7 @@ try {
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The Symbol.iterator method cannot be bound. | | 10200011 | The Symbol.iterator method cannot be bound. |
......
...@@ -30,7 +30,7 @@ import LightWeightSet from '@ohos.util.LightWeightSet'; ...@@ -30,7 +30,7 @@ import LightWeightSet from '@ohos.util.LightWeightSet';
**系统能力:** SystemCapability.Utils.Lang **系统能力:** SystemCapability.Utils.Lang
| 名称 | 参数类型 | 可读 | 可写 | 说明 | | 名称 | 类型 | 可读 | 可写 | 说明 |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| length | number | 是 | 否 | LightWeightSet的元素个数。 | | length | number | 是 | 否 | LightWeightSet的元素个数。 |
...@@ -47,7 +47,7 @@ LightWeightSet的构造函数。 ...@@ -47,7 +47,7 @@ LightWeightSet的构造函数。
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200012 | The LightWeightSet's constructor cannot be directly invoked. | | 10200012 | The LightWeightSet's constructor cannot be directly invoked. |
...@@ -81,7 +81,7 @@ isEmpty(): boolean ...@@ -81,7 +81,7 @@ isEmpty(): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The isEmpty method cannot be bound. | | 10200011 | The isEmpty method cannot be bound. |
...@@ -121,7 +121,7 @@ add(obj: T): boolean ...@@ -121,7 +121,7 @@ add(obj: T): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The add method cannot be bound. | | 10200011 | The add method cannot be bound. |
...@@ -156,7 +156,7 @@ addAll(set: LightWeightSet&lt;T&gt;): boolean ...@@ -156,7 +156,7 @@ addAll(set: LightWeightSet&lt;T&gt;): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The addAll method cannot be bound. | | 10200011 | The addAll method cannot be bound. |
...@@ -201,7 +201,7 @@ hasAll(set: LightWeightSet&lt;T&gt;): boolean ...@@ -201,7 +201,7 @@ hasAll(set: LightWeightSet&lt;T&gt;): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The hasAll method cannot be bound. | | 10200011 | The hasAll method cannot be bound. |
...@@ -246,7 +246,7 @@ has(key: T): boolean ...@@ -246,7 +246,7 @@ has(key: T): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The has method cannot be bound. | | 10200011 | The has method cannot be bound. |
...@@ -289,7 +289,7 @@ equal(obj: Object): boolean ...@@ -289,7 +289,7 @@ equal(obj: Object): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The equal method cannot be bound. | | 10200011 | The equal method cannot be bound. |
...@@ -327,7 +327,7 @@ increaseCapacityTo(minimumCapacity: number): void ...@@ -327,7 +327,7 @@ increaseCapacityTo(minimumCapacity: number): void
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The increaseCapacityTo method cannot be bound. | | 10200011 | The increaseCapacityTo method cannot be bound. |
| 10200001 | The value of parameters are out of range. | | 10200001 | The value of parameters are out of range. |
...@@ -374,7 +374,7 @@ getIndexOf(key: T): number ...@@ -374,7 +374,7 @@ getIndexOf(key: T): number
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The getIndexOf method cannot be bound. | | 10200011 | The getIndexOf method cannot be bound. |
...@@ -417,7 +417,7 @@ remove(key: T): T ...@@ -417,7 +417,7 @@ remove(key: T): T
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The remove method cannot be bound. | | 10200011 | The remove method cannot be bound. |
...@@ -460,7 +460,7 @@ removeAt(index: number): boolean ...@@ -460,7 +460,7 @@ removeAt(index: number): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The removeAt method cannot be bound. | | 10200011 | The removeAt method cannot be bound. |
...@@ -503,7 +503,7 @@ getValueAt(index: number): T ...@@ -503,7 +503,7 @@ getValueAt(index: number): T
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The getValueAt method cannot be bound. | | 10200011 | The getValueAt method cannot be bound. |
...@@ -534,7 +534,7 @@ clear(): void ...@@ -534,7 +534,7 @@ clear(): void
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The clear method cannot be bound. | | 10200011 | The clear method cannot be bound. |
...@@ -571,7 +571,7 @@ toString(): String ...@@ -571,7 +571,7 @@ toString(): String
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The toString method cannot be bound. | | 10200011 | The toString method cannot be bound. |
...@@ -608,7 +608,7 @@ toArray(): Array&lt;T&gt; ...@@ -608,7 +608,7 @@ toArray(): Array&lt;T&gt;
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The toArray method cannot be bound. | | 10200011 | The toArray method cannot be bound. |
...@@ -645,7 +645,7 @@ values(): IterableIterator&lt;T&gt; ...@@ -645,7 +645,7 @@ values(): IterableIterator&lt;T&gt;
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The values method cannot be bound. | | 10200011 | The values method cannot be bound. |
...@@ -695,7 +695,7 @@ callbackfn的参数说明: ...@@ -695,7 +695,7 @@ callbackfn的参数说明:
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The forEach method cannot be bound. | | 10200011 | The forEach method cannot be bound. |
...@@ -736,7 +736,7 @@ entries(): IterableIterator<[T, T]> ...@@ -736,7 +736,7 @@ entries(): IterableIterator<[T, T]>
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The entries method cannot be bound. | | 10200011 | The entries method cannot be bound. |
...@@ -778,7 +778,7 @@ try { ...@@ -778,7 +778,7 @@ try {
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The Symbol.iterator method cannot be bound. | | 10200011 | The Symbol.iterator method cannot be bound. |
......
...@@ -29,7 +29,7 @@ import LinkedList from '@ohos.util.LinkedList'; ...@@ -29,7 +29,7 @@ import LinkedList from '@ohos.util.LinkedList';
**系统能力:** SystemCapability.Utils.Lang **系统能力:** SystemCapability.Utils.Lang
| 名称 | 参数类型 | 可读 | 可写 | 说明 | | 名称 | 类型 | 可读 | 可写 | 说明 |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| length | number | 是 | 否 | LinkedList的元素个数。 | | length | number | 是 | 否 | LinkedList的元素个数。 |
...@@ -46,7 +46,7 @@ LinkedList的构造函数。 ...@@ -46,7 +46,7 @@ LinkedList的构造函数。
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200012 | The LinkedList's constructor cannot be directly invoked. | | 10200012 | The LinkedList's constructor cannot be directly invoked. |
...@@ -87,7 +87,7 @@ add(element: T): boolean ...@@ -87,7 +87,7 @@ add(element: T): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The add method cannot be bound. | | 10200011 | The add method cannot be bound. |
...@@ -127,7 +127,7 @@ addFirst(element: T): void ...@@ -127,7 +127,7 @@ addFirst(element: T): void
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The addFirst method cannot be bound. | | 10200011 | The addFirst method cannot be bound. |
...@@ -168,7 +168,7 @@ insert(index: number, element: T): void ...@@ -168,7 +168,7 @@ insert(index: number, element: T): void
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The insert method cannot be bound. | | 10200011 | The insert method cannot be bound. |
| 10200001 | The value of parameters are out of range. | | 10200001 | The value of parameters are out of range. |
...@@ -216,7 +216,7 @@ has(element: T): boolean ...@@ -216,7 +216,7 @@ has(element: T): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The has method cannot be bound. | | 10200011 | The has method cannot be bound. |
...@@ -258,7 +258,7 @@ get(index: number): T ...@@ -258,7 +258,7 @@ get(index: number): T
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The get method cannot be bound. | | 10200011 | The get method cannot be bound. |
...@@ -305,7 +305,7 @@ getLastIndexOf(element: T): number ...@@ -305,7 +305,7 @@ getLastIndexOf(element: T): number
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The getLastIndexOf method cannot be bound. | | 10200011 | The getLastIndexOf method cannot be bound. |
...@@ -352,7 +352,7 @@ getIndexOf(element: T): number ...@@ -352,7 +352,7 @@ getIndexOf(element: T): number
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The getIndexOf method cannot be bound. | | 10200011 | The getIndexOf method cannot be bound. |
...@@ -399,7 +399,7 @@ removeByIndex(index: number): T ...@@ -399,7 +399,7 @@ removeByIndex(index: number): T
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The removeByIndex method cannot be bound. | | 10200011 | The removeByIndex method cannot be bound. |
| 10200001 | The value of parameters are out of range. | | 10200001 | The value of parameters are out of range. |
...@@ -444,7 +444,7 @@ removeFirst(): T ...@@ -444,7 +444,7 @@ removeFirst(): T
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The removeFirst method cannot be bound. | | 10200011 | The removeFirst method cannot be bound. |
| 10200010 | Container is empty. | | 10200010 | Container is empty. |
...@@ -489,7 +489,7 @@ removeLast(): T ...@@ -489,7 +489,7 @@ removeLast(): T
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The removeLast method cannot be bound. | | 10200011 | The removeLast method cannot be bound. |
| 10200010 | Container is empty. | | 10200010 | Container is empty. |
...@@ -540,7 +540,7 @@ remove(element: T): boolean ...@@ -540,7 +540,7 @@ remove(element: T): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The remove method cannot be bound. | | 10200011 | The remove method cannot be bound. |
...@@ -584,7 +584,7 @@ removeFirstFound(element: T): boolean ...@@ -584,7 +584,7 @@ removeFirstFound(element: T): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The removeFirstFound method cannot be bound. | | 10200011 | The removeFirstFound method cannot be bound. |
| 10200010 | Container is empty. | | 10200010 | Container is empty. |
...@@ -634,7 +634,7 @@ removeLastFound(element: T): boolean ...@@ -634,7 +634,7 @@ removeLastFound(element: T): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The removeLastFound method cannot be bound. | | 10200011 | The removeLastFound method cannot be bound. |
| 10200010 | Container is empty. | | 10200010 | Container is empty. |
...@@ -678,7 +678,7 @@ clone(): LinkedList&lt;T&gt; ...@@ -678,7 +678,7 @@ clone(): LinkedList&lt;T&gt;
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The clone method cannot be bound. | | 10200011 | The clone method cannot be bound. |
...@@ -726,7 +726,7 @@ callbackfn的参数说明: ...@@ -726,7 +726,7 @@ callbackfn的参数说明:
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The forEach method cannot be bound. | | 10200011 | The forEach method cannot be bound. |
...@@ -762,7 +762,7 @@ clear(): void ...@@ -762,7 +762,7 @@ clear(): void
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The clear method cannot be bound. | | 10200011 | The clear method cannot be bound. |
...@@ -807,7 +807,7 @@ set(index: number, element: T): T ...@@ -807,7 +807,7 @@ set(index: number, element: T): T
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The set method cannot be bound. | | 10200011 | The set method cannot be bound. |
| 10200001 | The value of parameters are out of range. | | 10200001 | The value of parameters are out of range. |
...@@ -851,7 +851,7 @@ convertToArray(): Array&lt;T&gt; ...@@ -851,7 +851,7 @@ convertToArray(): Array&lt;T&gt;
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The convertToArray method cannot be bound. | | 10200011 | The convertToArray method cannot be bound. |
...@@ -888,7 +888,7 @@ getFirst(): T ...@@ -888,7 +888,7 @@ getFirst(): T
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The getFirst method cannot be bound. | | 10200011 | The getFirst method cannot be bound. |
...@@ -926,7 +926,7 @@ getLast(): T ...@@ -926,7 +926,7 @@ getLast(): T
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The getLast method cannot be bound. | | 10200011 | The getLast method cannot be bound. |
...@@ -964,7 +964,7 @@ try { ...@@ -964,7 +964,7 @@ try {
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The Symbol.iterator method cannot be bound. | | 10200011 | The Symbol.iterator method cannot be bound. |
......
...@@ -25,7 +25,7 @@ import List from '@ohos.util.List'; ...@@ -25,7 +25,7 @@ import List from '@ohos.util.List';
**系统能力:** SystemCapability.Utils.Lang **系统能力:** SystemCapability.Utils.Lang
| 名称 | 参数类型 | 可读 | 可写 | 说明 | | 名称 | 类型 | 可读 | 可写 | 说明 |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| length | number | 是 | 否 | List的元素个数。 | | length | number | 是 | 否 | List的元素个数。 |
...@@ -42,7 +42,7 @@ List的构造函数。 ...@@ -42,7 +42,7 @@ List的构造函数。
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200012 | The List's constructor cannot be directly invoked. | | 10200012 | The List's constructor cannot be directly invoked. |
...@@ -82,7 +82,7 @@ add(element: T): boolean ...@@ -82,7 +82,7 @@ add(element: T): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The add method cannot be bound. | | 10200011 | The add method cannot be bound. |
...@@ -123,7 +123,7 @@ insert(element: T, index: number): void ...@@ -123,7 +123,7 @@ insert(element: T, index: number): void
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The insert method cannot be bound. | | 10200011 | The insert method cannot be bound. |
| 10200001 | The value of parameters are out of range. | | 10200001 | The value of parameters are out of range. |
...@@ -171,7 +171,7 @@ has(element: T): boolean ...@@ -171,7 +171,7 @@ has(element: T): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The has method cannot be bound. | | 10200011 | The has method cannot be bound. |
...@@ -213,7 +213,7 @@ get(index: number): T ...@@ -213,7 +213,7 @@ get(index: number): T
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The get method cannot be bound. | | 10200011 | The get method cannot be bound. |
...@@ -260,7 +260,7 @@ getLastIndexOf(element: T): number ...@@ -260,7 +260,7 @@ getLastIndexOf(element: T): number
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The getLastIndexOf method cannot be bound. | | 10200011 | The getLastIndexOf method cannot be bound. |
...@@ -307,7 +307,7 @@ getIndexOf(element: T): number ...@@ -307,7 +307,7 @@ getIndexOf(element: T): number
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The getIndexOf method cannot be bound. | | 10200011 | The getIndexOf method cannot be bound. |
...@@ -355,7 +355,7 @@ equal(obj: Object): boolean ...@@ -355,7 +355,7 @@ equal(obj: Object): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The equal method cannot be bound. | | 10200011 | The equal method cannot be bound. |
...@@ -405,7 +405,7 @@ removeByIndex(index: number): T ...@@ -405,7 +405,7 @@ removeByIndex(index: number): T
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The removeByIndex method cannot be bound. | | 10200011 | The removeByIndex method cannot be bound. |
| 10200001 | The value of parameters are out of range. | | 10200001 | The value of parameters are out of range. |
...@@ -456,7 +456,7 @@ remove(element: T): boolean ...@@ -456,7 +456,7 @@ remove(element: T): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The remove method cannot be bound. | | 10200011 | The remove method cannot be bound. |
...@@ -504,7 +504,7 @@ callbackfn的参数说明: ...@@ -504,7 +504,7 @@ callbackfn的参数说明:
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The replaceAllElements method cannot be bound. | | 10200011 | The replaceAllElements method cannot be bound. |
...@@ -559,7 +559,7 @@ callbackfn的参数说明: ...@@ -559,7 +559,7 @@ callbackfn的参数说明:
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The forEach method cannot be bound. | | 10200011 | The forEach method cannot be bound. |
...@@ -609,7 +609,7 @@ comparator的参数说明: ...@@ -609,7 +609,7 @@ comparator的参数说明:
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The sort method cannot be bound. | | 10200011 | The sort method cannot be bound. |
...@@ -655,7 +655,7 @@ getSubList(fromIndex: number, toIndex: number): List&lt;T&gt; ...@@ -655,7 +655,7 @@ getSubList(fromIndex: number, toIndex: number): List&lt;T&gt;
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The getSubList method cannot be bound. | | 10200011 | The getSubList method cannot be bound. |
| 10200001 | The value of parameters are out of range. | | 10200001 | The value of parameters are out of range. |
...@@ -695,7 +695,7 @@ clear(): void ...@@ -695,7 +695,7 @@ clear(): void
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The clear method cannot be bound. | | 10200011 | The clear method cannot be bound. |
...@@ -740,7 +740,7 @@ set(index: number, element: T): T ...@@ -740,7 +740,7 @@ set(index: number, element: T): T
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The set method cannot be bound. | | 10200011 | The set method cannot be bound. |
| 10200001 | The value of parameters are out of range. | | 10200001 | The value of parameters are out of range. |
...@@ -784,7 +784,7 @@ convertToArray(): Array&lt;T&gt; ...@@ -784,7 +784,7 @@ convertToArray(): Array&lt;T&gt;
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The convertToArray method cannot be bound. | | 10200011 | The convertToArray method cannot be bound. |
...@@ -822,7 +822,7 @@ isEmpty(): boolean ...@@ -822,7 +822,7 @@ isEmpty(): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The isEmpty method cannot be bound. | | 10200011 | The isEmpty method cannot be bound. |
...@@ -860,7 +860,7 @@ getFirst(): T ...@@ -860,7 +860,7 @@ getFirst(): T
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The getFirst method cannot be bound. | | 10200011 | The getFirst method cannot be bound. |
...@@ -898,7 +898,7 @@ getLast(): T ...@@ -898,7 +898,7 @@ getLast(): T
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The getLast method cannot be bound. | | 10200011 | The getLast method cannot be bound. |
...@@ -936,7 +936,7 @@ try { ...@@ -936,7 +936,7 @@ try {
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The Symbol.iterator method cannot be bound. | | 10200011 | The Symbol.iterator method cannot be bound. |
......
...@@ -28,7 +28,7 @@ import PlainArray from '@ohos.util.PlainArray'; ...@@ -28,7 +28,7 @@ import PlainArray from '@ohos.util.PlainArray';
**系统能力:** SystemCapability.Utils.Lang **系统能力:** SystemCapability.Utils.Lang
| 名称 | 参数类型 | 可读 | 可写 | 说明 | | 名称 | 类型 | 可读 | 可写 | 说明 |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| length | number | 是 | 否 | PlainArray的元素个数。 | | length | number | 是 | 否 | PlainArray的元素个数。 |
...@@ -45,7 +45,7 @@ PlainArray的构造函数。 ...@@ -45,7 +45,7 @@ PlainArray的构造函数。
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200012 | The PlainArray's constructor cannot be directly invoked. | | 10200012 | The PlainArray's constructor cannot be directly invoked. |
...@@ -79,7 +79,7 @@ isEmpty(): boolean ...@@ -79,7 +79,7 @@ isEmpty(): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The isEmpty method cannot be bound. | | 10200011 | The isEmpty method cannot be bound. |
...@@ -120,7 +120,7 @@ has(key: number): boolean ...@@ -120,7 +120,7 @@ has(key: number): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The has method cannot be bound. | | 10200011 | The has method cannot be bound. |
...@@ -163,7 +163,7 @@ get(key: number): T ...@@ -163,7 +163,7 @@ get(key: number): T
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The get method cannot be bound. | | 10200011 | The get method cannot be bound. |
...@@ -206,7 +206,7 @@ getIndexOfKey(key: number): number ...@@ -206,7 +206,7 @@ getIndexOfKey(key: number): number
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The getIndexOfKey method cannot be bound. | | 10200011 | The getIndexOfKey method cannot be bound. |
...@@ -249,7 +249,7 @@ getIndexOfValue(value: T): number ...@@ -249,7 +249,7 @@ getIndexOfValue(value: T): number
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The getIndexOfValue method cannot be bound. | | 10200011 | The getIndexOfValue method cannot be bound. |
...@@ -292,7 +292,7 @@ getKeyAt(index: number): number ...@@ -292,7 +292,7 @@ getKeyAt(index: number): number
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The getKeyAt method cannot be bound. | | 10200011 | The getKeyAt method cannot be bound. |
...@@ -334,7 +334,7 @@ getValueAt(index: number): T ...@@ -334,7 +334,7 @@ getValueAt(index: number): T
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The getValueAt method cannot be bound. | | 10200011 | The getValueAt method cannot be bound. |
| 10200001 | The value of parameters are out of range. | | 10200001 | The value of parameters are out of range. |
...@@ -376,7 +376,7 @@ clone(): PlainArray&lt;T&gt; ...@@ -376,7 +376,7 @@ clone(): PlainArray&lt;T&gt;
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The clone method cannot be bound. | | 10200011 | The clone method cannot be bound. |
...@@ -414,7 +414,7 @@ add(key: number, value: T): void ...@@ -414,7 +414,7 @@ add(key: number, value: T): void
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The add method cannot be bound. | | 10200011 | The add method cannot be bound. |
...@@ -455,7 +455,7 @@ remove(key: number): T ...@@ -455,7 +455,7 @@ remove(key: number): T
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The remove method cannot be bound. | | 10200011 | The remove method cannot be bound. |
...@@ -498,7 +498,7 @@ removeAt(index: number): T ...@@ -498,7 +498,7 @@ removeAt(index: number): T
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The removeAt method cannot be bound. | | 10200011 | The removeAt method cannot be bound. |
...@@ -542,7 +542,7 @@ removeRangeFrom(index: number, size: number): number ...@@ -542,7 +542,7 @@ removeRangeFrom(index: number, size: number): number
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The removeRangeFrom method cannot be bound. | | 10200011 | The removeRangeFrom method cannot be bound. |
| 10200001 | The value of parameters are out of range. | | 10200001 | The value of parameters are out of range. |
...@@ -586,7 +586,7 @@ setValueAt(index: number, value: T): void ...@@ -586,7 +586,7 @@ setValueAt(index: number, value: T): void
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The setValueAt method cannot be bound. | | 10200011 | The setValueAt method cannot be bound. |
| 10200001 | The value of parameters are out of range. | | 10200001 | The value of parameters are out of range. |
...@@ -629,7 +629,7 @@ toString(): String ...@@ -629,7 +629,7 @@ toString(): String
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The toString method cannot be bound. | | 10200011 | The toString method cannot be bound. |
...@@ -660,7 +660,7 @@ clear(): void ...@@ -660,7 +660,7 @@ clear(): void
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The clear method cannot be bound. | | 10200011 | The clear method cannot be bound. |
...@@ -705,7 +705,7 @@ callbackfn的参数说明: ...@@ -705,7 +705,7 @@ callbackfn的参数说明:
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The forEach method cannot be bound. | | 10200011 | The forEach method cannot be bound. |
...@@ -746,7 +746,7 @@ try { ...@@ -746,7 +746,7 @@ try {
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The Symbol.iterator method cannot be bound. | | 10200011 | The Symbol.iterator method cannot be bound. |
......
...@@ -25,7 +25,7 @@ import Queue from '@ohos.util.Queue'; ...@@ -25,7 +25,7 @@ import Queue from '@ohos.util.Queue';
**系统能力:** SystemCapability.Utils.Lang **系统能力:** SystemCapability.Utils.Lang
| 名称 | 参数类型 | 可读 | 可写 | 说明 | | 名称 | 类型 | 可读 | 可写 | 说明 |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| length | number | 是 | 否 | Queue的元素个数。 | | length | number | 是 | 否 | Queue的元素个数。 |
...@@ -42,7 +42,7 @@ Queue的构造函数。 ...@@ -42,7 +42,7 @@ Queue的构造函数。
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200012 | The Queue's constructor cannot be directly invoked. | | 10200012 | The Queue's constructor cannot be directly invoked. |
...@@ -82,7 +82,7 @@ add(element: T): boolean ...@@ -82,7 +82,7 @@ add(element: T): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The add method cannot be bound. | | 10200011 | The add method cannot be bound. |
...@@ -121,7 +121,7 @@ pop(): T ...@@ -121,7 +121,7 @@ pop(): T
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The pop method cannot be bound. | | 10200011 | The pop method cannot be bound. |
...@@ -160,7 +160,7 @@ getFirst(): T ...@@ -160,7 +160,7 @@ getFirst(): T
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The getFirst method cannot be bound. | | 10200011 | The getFirst method cannot be bound. |
...@@ -208,7 +208,7 @@ callbackfn的参数说明: ...@@ -208,7 +208,7 @@ callbackfn的参数说明:
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The forEach method cannot be bound. | | 10200011 | The forEach method cannot be bound. |
...@@ -250,7 +250,7 @@ try { ...@@ -250,7 +250,7 @@ try {
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The Symbol.iterator method cannot be bound. | | 10200011 | The Symbol.iterator method cannot be bound. |
......
...@@ -27,7 +27,7 @@ import Stack from '@ohos.util.Stack'; ...@@ -27,7 +27,7 @@ import Stack from '@ohos.util.Stack';
**系统能力:** SystemCapability.Utils.Lang **系统能力:** SystemCapability.Utils.Lang
| 名称 | 参数类型 | 可读 | 可写 | 说明 | | 名称 | 类型 | 可读 | 可写 | 说明 |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| length | number | 是 | 否 | Stack的元素个数。 | | length | number | 是 | 否 | Stack的元素个数。 |
...@@ -44,7 +44,7 @@ Stack的构造函数。 ...@@ -44,7 +44,7 @@ Stack的构造函数。
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200012 | The Stack's constructor cannot be directly invoked. | | 10200012 | The Stack's constructor cannot be directly invoked. |
...@@ -84,7 +84,7 @@ push(item: T): T ...@@ -84,7 +84,7 @@ push(item: T): T
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The push method cannot be bound. | | 10200011 | The push method cannot be bound. |
...@@ -123,7 +123,7 @@ pop(): T ...@@ -123,7 +123,7 @@ pop(): T
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The pop method cannot be bound. | | 10200011 | The pop method cannot be bound. |
...@@ -162,7 +162,7 @@ peek(): T ...@@ -162,7 +162,7 @@ peek(): T
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The peek method cannot be bound. | | 10200011 | The peek method cannot be bound. |
...@@ -206,7 +206,7 @@ locate(element: T): number ...@@ -206,7 +206,7 @@ locate(element: T): number
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The locate method cannot be bound. | | 10200011 | The locate method cannot be bound. |
...@@ -254,7 +254,7 @@ callbackfn的参数说明: ...@@ -254,7 +254,7 @@ callbackfn的参数说明:
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The forEach method cannot be bound. | | 10200011 | The forEach method cannot be bound. |
...@@ -296,7 +296,7 @@ isEmpty(): boolean ...@@ -296,7 +296,7 @@ isEmpty(): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The isEmpty method cannot be bound. | | 10200011 | The isEmpty method cannot be bound. |
...@@ -334,7 +334,7 @@ try { ...@@ -334,7 +334,7 @@ try {
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The Symbol.iterator method cannot be bound. | | 10200011 | The Symbol.iterator method cannot be bound. |
......
...@@ -27,7 +27,7 @@ import TreeMap from '@ohos.util.TreeMap'; ...@@ -27,7 +27,7 @@ import TreeMap from '@ohos.util.TreeMap';
**系统能力:** SystemCapability.Utils.Lang **系统能力:** SystemCapability.Utils.Lang
| 名称 | 参数类型 | 可读 | 可写 | 说明 | | 名称 | 类型 | 可读 | 可写 | 说明 |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| length | number | 是 | 否 | TreeMap的元素个数。 | | length | number | 是 | 否 | TreeMap的元素个数。 |
...@@ -50,7 +50,7 @@ TreeMap的构造函数。 ...@@ -50,7 +50,7 @@ TreeMap的构造函数。
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200012 | The TreeMap's constructor cannot be directly invoked. | | 10200012 | The TreeMap's constructor cannot be directly invoked. |
...@@ -84,7 +84,7 @@ isEmpty(): boolean ...@@ -84,7 +84,7 @@ isEmpty(): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The isEmpty method cannot be bound. | | 10200011 | The isEmpty method cannot be bound. |
...@@ -125,7 +125,7 @@ hasKey(key: K): boolean ...@@ -125,7 +125,7 @@ hasKey(key: K): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The hasKey method cannot be bound. | | 10200011 | The hasKey method cannot be bound. |
...@@ -168,7 +168,7 @@ hasValue(value: V): boolean ...@@ -168,7 +168,7 @@ hasValue(value: V): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The hasValue method cannot be bound. | | 10200011 | The hasValue method cannot be bound. |
...@@ -211,7 +211,7 @@ get(key: K): V ...@@ -211,7 +211,7 @@ get(key: K): V
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The get method cannot be bound. | | 10200011 | The get method cannot be bound. |
...@@ -248,7 +248,7 @@ getFirstKey(): K ...@@ -248,7 +248,7 @@ getFirstKey(): K
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The getFirstKey method cannot be bound. | | 10200011 | The getFirstKey method cannot be bound. |
...@@ -285,7 +285,7 @@ getLastKey(): K ...@@ -285,7 +285,7 @@ getLastKey(): K
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The getLastKey method cannot be bound. | | 10200011 | The getLastKey method cannot be bound. |
...@@ -322,7 +322,7 @@ setAll(map: TreeMap<K, V>): void ...@@ -322,7 +322,7 @@ setAll(map: TreeMap<K, V>): void
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The setAll method cannot be bound. | | 10200011 | The setAll method cannot be bound. |
...@@ -367,7 +367,7 @@ set(key: K, value: V): Object ...@@ -367,7 +367,7 @@ set(key: K, value: V): Object
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The set method cannot be bound. | | 10200011 | The set method cannot be bound. |
...@@ -408,7 +408,7 @@ remove(key: K): V ...@@ -408,7 +408,7 @@ remove(key: K): V
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The remove method cannot be bound. | | 10200011 | The remove method cannot be bound. |
...@@ -451,7 +451,7 @@ getLowerKey(key: K): K ...@@ -451,7 +451,7 @@ getLowerKey(key: K): K
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The getLowerKey method cannot be bound. | | 10200011 | The getLowerKey method cannot be bound. |
...@@ -495,7 +495,7 @@ getHigherKey(key: K): K ...@@ -495,7 +495,7 @@ getHigherKey(key: K): K
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The getHigherKey method cannot be bound. | | 10200011 | The getHigherKey method cannot be bound. |
...@@ -539,7 +539,7 @@ replace(key: K, newValue: V): boolean ...@@ -539,7 +539,7 @@ replace(key: K, newValue: V): boolean
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The replace method cannot be bound. | | 10200011 | The replace method cannot be bound. |
...@@ -569,7 +569,7 @@ clear(): void ...@@ -569,7 +569,7 @@ clear(): void
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The clear method cannot be bound. | | 10200011 | The clear method cannot be bound. |
...@@ -606,7 +606,7 @@ keys(): IterableIterator&lt;K&gt; ...@@ -606,7 +606,7 @@ keys(): IterableIterator&lt;K&gt;
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The keys method cannot be bound. | | 10200011 | The keys method cannot be bound. |
...@@ -648,7 +648,7 @@ values(): IterableIterator&lt;V&gt; ...@@ -648,7 +648,7 @@ values(): IterableIterator&lt;V&gt;
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The values method cannot be bound. | | 10200011 | The values method cannot be bound. |
...@@ -698,7 +698,7 @@ callbackfn的参数说明: ...@@ -698,7 +698,7 @@ callbackfn的参数说明:
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The forEach method cannot be bound. | | 10200011 | The forEach method cannot be bound. |
...@@ -739,7 +739,7 @@ entries(): IterableIterator<[K, V]> ...@@ -739,7 +739,7 @@ entries(): IterableIterator<[K, V]>
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The entries method cannot be bound. | | 10200011 | The entries method cannot be bound. |
...@@ -781,7 +781,7 @@ try { ...@@ -781,7 +781,7 @@ try {
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200011 | The Symbol.iterator method cannot be bound. | | 10200011 | The Symbol.iterator method cannot be bound. |
......
...@@ -24,7 +24,7 @@ import TreeSet from '@ohos.util.TreeSet'; ...@@ -24,7 +24,7 @@ import TreeSet from '@ohos.util.TreeSet';
**系统能力:** SystemCapability.Utils.Lang **系统能力:** SystemCapability.Utils.Lang
| 名称 | 参数类型 | 可读 | 可写 | 说明 | | 名称 | 类型 | 可读 | 可写 | 说明 |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| length | number | 是 | 否 | TreeSet的元素个数。 | | length | number | 是 | 否 | TreeSet的元素个数。 |
...@@ -47,7 +47,7 @@ TreeSet的构造函数。 ...@@ -47,7 +47,7 @@ TreeSet的构造函数。
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md) 以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 | | 错误码ID | 错误信息 |
| -------- | -------- | | -------- | -------- |
| 10200012 | The TreeSet's constructor cannot be directly invoked. | | 10200012 | The TreeSet's constructor cannot be directly invoked. |
...@@ -77,6 +77,14 @@ isEmpty(): boolean ...@@ -77,6 +77,14 @@ isEmpty(): boolean
| -------- | -------- | | -------- | -------- |
| boolean | 为空返回true,不为空返回false。 | | boolean | 为空返回true,不为空返回false。 |
**错误码:**
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 10200011 | The isEmpty method cannot be bound. |
**示例:** **示例:**
```ts ```ts
...@@ -110,6 +118,14 @@ has(value: T): boolean ...@@ -110,6 +118,14 @@ has(value: T): boolean
| -------- | -------- | | -------- | -------- |
| boolean | 包含指定元素返回true,否则返回false。 | | boolean | 包含指定元素返回true,否则返回false。 |
**错误码:**
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 10200011 | The has method cannot be bound. |
**示例:** **示例:**
```ts ```ts
...@@ -139,6 +155,14 @@ getFirstValue(): T ...@@ -139,6 +155,14 @@ getFirstValue(): T
| -------- | -------- | | -------- | -------- |
| T | 返回排序第一的数据。 | | T | 返回排序第一的数据。 |
**错误码:**
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 10200011 | The getFirstValue method cannot be bound. |
**示例:** **示例:**
```ts ```ts
...@@ -168,6 +192,14 @@ getLastValue(): T ...@@ -168,6 +192,14 @@ getLastValue(): T
| -------- | -------- | | -------- | -------- |
| T | 返回排序最后的数据。 | | T | 返回排序最后的数据。 |
**错误码:**
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 10200011 | The getLastValue method cannot be bound. |
**示例:** **示例:**
```ts ```ts
...@@ -203,6 +235,14 @@ add(value: T): boolean ...@@ -203,6 +235,14 @@ add(value: T): boolean
| -------- | -------- | | -------- | -------- |
| boolean | 成功添加新数据至容器返回true,否则返回false。 | | boolean | 成功添加新数据至容器返回true,否则返回false。 |
**错误码:**
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 10200011 | The add method cannot be bound. |
**示例:** **示例:**
```ts ```ts
...@@ -236,6 +276,14 @@ remove(value: T): boolean ...@@ -236,6 +276,14 @@ remove(value: T): boolean
| -------- | -------- | | -------- | -------- |
| boolean | 成功删除元素返回true,否则返回false。 | | boolean | 成功删除元素返回true,否则返回false。 |
**错误码:**
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 10200011 | The remove method cannot be bound. |
**示例:** **示例:**
```ts ```ts
...@@ -271,6 +319,14 @@ getLowerValue(key: T): T ...@@ -271,6 +319,14 @@ getLowerValue(key: T): T
| -------- | -------- | | -------- | -------- |
| T | 返回排序中对比元素前一位的数据。 | | T | 返回排序中对比元素前一位的数据。 |
**错误码:**
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 10200011 | The getLowerValue method cannot be bound. |
**示例:** **示例:**
```ts ```ts
...@@ -307,6 +363,14 @@ getHigherValue(key: T): T ...@@ -307,6 +363,14 @@ getHigherValue(key: T): T
| -------- | -------- | | -------- | -------- |
| T | 返回排序中传入元素后一位的数据。 | | T | 返回排序中传入元素后一位的数据。 |
**错误码:**
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 10200011 | The getHigherValue method cannot be bound. |
**示例:** **示例:**
```ts ```ts
...@@ -337,6 +401,14 @@ popFirst(): T ...@@ -337,6 +401,14 @@ popFirst(): T
| -------- | -------- | | -------- | -------- |
| T | 返回删除的数据。 | | T | 返回删除的数据。 |
**错误码:**
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 10200011 | The popFirst method cannot be bound. |
**示例:** **示例:**
```ts ```ts
...@@ -366,6 +438,14 @@ popLast(): T ...@@ -366,6 +438,14 @@ popLast(): T
| -------- | -------- | | -------- | -------- |
| T | 返回删除的数据。 | | T | 返回删除的数据。 |
**错误码:**
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 10200011 | The popLast method cannot be bound. |
**示例:** **示例:**
```ts ```ts
...@@ -389,6 +469,14 @@ clear(): void ...@@ -389,6 +469,14 @@ clear(): void
**系统能力:** SystemCapability.Utils.Lang **系统能力:** SystemCapability.Utils.Lang
**错误码:**
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 10200011 | The clear method cannot be bound. |
**示例:** **示例:**
```ts ```ts
...@@ -418,6 +506,14 @@ values(): IterableIterator&lt;T&gt; ...@@ -418,6 +506,14 @@ values(): IterableIterator&lt;T&gt;
| -------- | -------- | | -------- | -------- |
| IterableIterator&lt;T&gt; | 返回一个迭代器。 | | IterableIterator&lt;T&gt; | 返回一个迭代器。 |
**错误码:**
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 10200011 | The values method cannot be bound. |
**示例:** **示例:**
```ts ```ts
...@@ -460,6 +556,14 @@ callbackfn的参数说明: ...@@ -460,6 +556,14 @@ callbackfn的参数说明:
| key | T | 否 | 当前遍历到的元素(和value相同)。 | | key | T | 否 | 当前遍历到的元素(和value相同)。 |
| set | TreeSet&lt;T&gt; | 否 | 当前调用forEach方法的实例对象。 | | set | TreeSet&lt;T&gt; | 否 | 当前调用forEach方法的实例对象。 |
**错误码:**
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 10200011 | The forEach method cannot be bound. |
**示例:** **示例:**
```ts ```ts
...@@ -493,6 +597,14 @@ entries(): IterableIterator<[T, T]> ...@@ -493,6 +597,14 @@ entries(): IterableIterator<[T, T]>
| -------- | -------- | | -------- | -------- |
| IterableIterator<[T, T]> | 返回一个迭代器。 | | IterableIterator<[T, T]> | 返回一个迭代器。 |
**错误码:**
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 10200011 | The entries method cannot be bound. |
**示例:** **示例:**
```ts ```ts
...@@ -528,6 +640,14 @@ try { ...@@ -528,6 +640,14 @@ try {
| -------- | -------- | | -------- | -------- |
| IterableIterator&lt;T&gt; | 返回一个迭代器 | | IterableIterator&lt;T&gt; | 返回一个迭代器 |
**错误码:**
以下错误码的详细介绍请参见[containers错误码](../errorcodes/errorcode-containers.md)
| 错误码ID | 错误信息 |
| -------- | -------- |
| 10200011 | The Symbol.iterator method cannot be bound. |
**示例:** **示例:**
```ts ```ts
......
...@@ -25,7 +25,7 @@ import Vector from '@ohos.util.Vector'; ...@@ -25,7 +25,7 @@ import Vector from '@ohos.util.Vector';
**系统能力:** SystemCapability.Utils.Lang **系统能力:** SystemCapability.Utils.Lang
| 名称 | 参数类型 | 可读 | 可写 | 说明 | | 名称 | 类型 | 可读 | 可写 | 说明 |
| -------- | -------- | -------- | -------- | -------- | | -------- | -------- | -------- | -------- | -------- |
| length | number | 是 | 否 | Vector的元素个数。 | | length | number | 是 | 否 | Vector的元素个数。 |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册