// Check whether the number is 0. If yes, the API call is successful, but the result set is empty. Check whether the options for fetching the files are correctly set and whether the corresponding files exist on the device.
if(count==0){
console.info('The count of fetchFileResult is zero');
// Check whether the number is 0. If yes, the API call is successful, but the result set is empty. Check whether the options for fetching the files are correctly set and whether the corresponding files exist on the device.
console.error('Failed to get first object: '+err);
if(count==0){
console.info('The count of fetchFileResult is zero');
Opens this file asset. This API uses an asynchronous callback to return the result.
Opens this file asset. This API uses an asynchronous callback to return the result.
> **NOTE**
**NOTE**: When a file is opened in 'w' mode, the returned FD cannot be read. However, due to the implementation differences of file systems, some user-mode files opened in 'w' mode can be read by using FD. To perform the read or write operation on a file by using FD, you are advised to open the file in 'rw' mode. The write operations are mutually exclusive. After a write operation is complete, you must call **close** to release the resource.
>
> Currently, the write operations are mutually exclusive. After the write operation is complete, you must call **close** to release the resource.
**Required permissions**: ohos.permission.READ_MEDIA or ohos.permission.WRITE_MEDIA
**Required permissions**: ohos.permission.READ_MEDIA or ohos.permission.WRITE_MEDIA
...
@@ -1222,13 +1250,13 @@ async function example() {
...
@@ -1222,13 +1250,13 @@ async function example() {
Opens this file asset. This API uses a promise to return the result.
Opens this file asset. This API uses a promise to return the result.
> **NOTE**
**NOTE**: When a file is opened in 'w' mode, the returned FD cannot be read. However, due to the implementation differences of file systems, some user-mode files opened in 'w' mode can be read by using FD. To perform the read or write operation on a file by using FD, you are advised to open the file in 'rw' mode. The write operations are mutually exclusive. After a write operation is complete, you must call **close** to release the resource.
>
> Currently, the write operations are mutually exclusive. After the write operation is complete, you must call **close** to release the resource.
**Required permissions**: ohos.permission.READ_MEDIA or ohos.permission.WRITE_MEDIA
**Required permissions**: ohos.permission.READ_MEDIA or ohos.permission.WRITE_MEDIA
...
@@ -1266,14 +1292,12 @@ async function example() {
...
@@ -1266,14 +1292,12 @@ async function example() {
Obtains the next file asset in the result set. This API uses an asynchronous callback to return the result.
Obtains the next file asset in the result set. This API uses an asynchronous callback to return the result.
> **NOTE**
>
> Before using this API, you must use [getFirstObject](#getfirstobject7) to obtain the first file asset and then use [isAfterLast](#isafterlast7) to ensure that the cursor does not point to the last file asset in the result set.
Obtains the next file asset in the result set. This API uses a promise to return the result.
Obtains the next file asset in the result set. This API uses a promise to return the result.
> **NOTE**
>
> Before using this API, you must use [getFirstObject](#getfirstobject7) to obtain the first file asset and then use [isAfterLast](#isafterlast7) to ensure that the cursor does not point to the last file asset in the result set.
| MIME_TYPE | 'mime_type' | Extended file attributes, such as image/, video/, and file/*. |
| MEDIA_TYPE | "media_type" | Media type. |
| MEDIA_TYPE | 'media_type' | Media type. |
| SIZE | "size" | File size, in bytes. |
| SIZE | 'size' | File size, in bytes. |
| DATE_ADDED | "date_added" | Date when the file was added. The value is the number of seconds elapsed since the Epoch time. |
| DATE_ADDED | 'date_added' | Date when the file was added. The value is the number of seconds elapsed since the Epoch time. |
| DATE_MODIFIED | "date_modified" | Date when the file content (not the file name) was last modified. The value is the number of seconds elapsed since the Epoch time.|
| DATE_MODIFIED | 'date_modified' | Date when the file content (not the file name) was last modified. The value is the number of seconds elapsed since the Epoch time.|
| DATE_TAKEN | "date_taken" | Date when the file (photo) was taken. The value is the number of seconds elapsed since the Epoch time. |
| DATE_TAKEN | 'date_taken' | Date when the file (photo) was taken. The value is the number of seconds elapsed since the Epoch time. |
| TITLE | "title" | Title in the file. |
| TITLE | 'title' | Title in the file. |
| ARTIST | "artist" | Artist of the file. |
| ARTIST | 'artist' | Artist of the file. |
| AUDIOALBUM | "audio_album" | Audio album. |
| AUDIOALBUM | 'audio_album' | Audio album. |
| DURATION | "duration" | Duration, in ms. |
| DURATION | 'duration' | Duration, in ms. |
| WIDTH | "width" | Image width, in pixels. |
| WIDTH | 'width' | Image width, in pixels. |
| HEIGHT | "height" | Image height, in pixels. |
| HEIGHT | 'height' | Image height, in pixels. |
| ORIENTATION | "orientation" | Image display direction (clockwise rotation angle, for example, 0, 90, and 180, in degrees).|
| ORIENTATION | 'orientation' | Image display direction (clockwise rotation angle, for example, 0, 90, and 180, in degrees).|
| ALBUM_ID | "bucket_id" | ID of the album to which the file belongs. |
| ALBUM_ID | 'bucket_id' | ID of the album to which the file belongs. |
| ALBUM_NAME | "bucket_display_name" | Name of the album to which the file belongs. |
| ALBUM_NAME | 'bucket_display_name' | Name of the album to which the file belongs. |
## DirectoryType<sup>8+</sup>
## DirectoryType<sup>8+</sup>
...
@@ -2559,9 +2623,9 @@ Describes options for fetching media files.
...
@@ -2559,9 +2623,9 @@ Describes options for fetching media files.
| selections | string | Yes | Yes | Conditions for fetching files. The enumerated values in [FileKey](#filekey8) are used as the column names of the conditions. Example:<br>selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? OR ' +mediaLibrary.FileKey.MEDIA_TYPE + '= ?', |
| selections | string | Yes | Yes | Conditions for fetching files. The enumerated values in [FileKey](#filekey8) are used as the column names of the conditions. Example:<br>selections: mediaLibrary.FileKey.MEDIA_TYPE + '= ? OR ' +mediaLibrary.FileKey.MEDIA_TYPE + '= ?', |
| selectionArgs | Array<string> | Yes | Yes | Value of the condition, which corresponds to the value of the condition column in **selections**.<br>Example:<br>selectionArgs: [mediaLibrary.MediaType.IMAGE.toString(), mediaLibrary.MediaType.VIDEO.toString()], |
| selectionArgs | Array<string> | Yes | Yes | Value of the condition, which corresponds to the value of the condition column in **selections**.<br>Example:<br>selectionArgs: [mediaLibrary.MediaType.IMAGE.toString(), mediaLibrary.MediaType.VIDEO.toString()], |
| order | string | Yes | Yes | Sorting mode of the search results, which can be ascending or descending. The enumerated values in [FileKey](#filekey8) are used as the columns for sorting the search results. Example:<br>Ascending: order: mediaLibrary.FileKey.DATE_ADDED + " ASC"<br>Descending: order: mediaLibrary.FileKey.DATE_ADDED + " DESC"|
| order | string | Yes | Yes | Sorting mode of the search results, which can be ascending or descending. The enumerated values in [FileKey](#filekey8) are used as the columns for sorting the search results. Example:<br>Ascending: order: mediaLibrary.FileKey.DATE_ADDED + ' ASC'<br>Descending: order: mediaLibrary.FileKey.DATE_ADDED + ' DESC'|
Publishes a reminder through the reminder agent. This API uses an asynchronous callback to return the result. It can be called only when notification is enabled for the application through [Notification.requestEnableNotification](js-apis-notification.md#notificationrequestenablenotification8).
Publishes a reminder through the reminder agent. This API uses an asynchronous callback to return the result. It can be called only when notification is enabled for the application through [Notification.requestEnableNotification](js-apis-notification.md#notificationrequestenablenotification8).
...
@@ -33,7 +31,7 @@ Publishes a reminder through the reminder agent. This API uses an asynchronous c
...
@@ -33,7 +31,7 @@ Publishes a reminder through the reminder agent. This API uses an asynchronous c
| Name| Type| Mandatory| Description|
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| -------- | -------- | -------- | -------- |
| reminderReq | [ReminderRequest](#reminderrequest) | Yes| Reminder to be published.|
| reminderReq | [ReminderRequest](#reminderrequest) | Yes| Reminder to be published.|
| callback | AsyncCallback\<number\> | Yes| Callback used to return the published reminder's ID.|
| callback | AsyncCallback<number> | Yes| Callback used to return the published reminder's ID.|
**Error codes**
**Error codes**
...
@@ -45,12 +43,11 @@ For details about the error codes, see [reminderAgentManager Error Codes](../err
...
@@ -45,12 +43,11 @@ For details about the error codes, see [reminderAgentManager Error Codes](../err
| 1700002 | The number of reminders exceeds the limit. |
| 1700002 | The number of reminders exceeds the limit. |
Publishes a reminder through the reminder agent. This API uses a promise to return the result. It can be called only when notification is enabled for the application through [Notification.requestEnableNotification](js-apis-notification.md#notificationrequestenablenotification8).
Publishes a reminder through the reminder agent. This API uses a promise to return the result. It can be called only when notification is enabled for the application through [Notification.requestEnableNotification](js-apis-notification.md#notificationrequestenablenotification8).
...
@@ -85,7 +80,7 @@ Publishes a reminder through the reminder agent. This API uses a promise to retu
...
@@ -85,7 +80,7 @@ Publishes a reminder through the reminder agent. This API uses a promise to retu
**Return value**
**Return value**
| Type| Description|
| Type| Description|
| -------- | -------- |
| -------- | -------- |
| Promise\<number\> | Promise used to return the published reminder's ID.|
| Promise<number> | Promise used to return the published reminder's ID.|
**Error codes**
**Error codes**
...
@@ -97,12 +92,11 @@ For details about the error codes, see [reminderAgentManager Error Codes](../err
...
@@ -97,12 +92,11 @@ For details about the error codes, see [reminderAgentManager Error Codes](../err
| 1700002 | The number of reminders exceeds the limit. |
| 1700002 | The number of reminders exceeds the limit. |
Obtains all valid (not yet expired) reminders set by the current application. This API uses an asynchronous callback to return the reminders.
Obtains all valid (not yet expired) reminders set by the current application. This API uses an asynchronous callback to return the reminders.
...
@@ -218,7 +206,7 @@ Obtains all valid (not yet expired) reminders set by the current application. Th
...
@@ -218,7 +206,7 @@ Obtains all valid (not yet expired) reminders set by the current application. Th
| Name| Type| Mandatory| Description|
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| -------- | -------- | -------- | -------- |
| callback | AsyncCallback\<Array\<[ReminderRequest](#reminderrequest)\>\> | Yes| Asynchronous callback used to return an array of all valid reminders set by the current application.|
| callback | AsyncCallback<Array<[ReminderRequest](#reminderrequest)>> | Yes| Asynchronous callback used to return an array of all valid reminders set by the current application.|
**Error codes**
**Error codes**
...
@@ -230,7 +218,7 @@ For details about the error codes, see [reminderAgentManager Error Codes](../err
...
@@ -230,7 +218,7 @@ For details about the error codes, see [reminderAgentManager Error Codes](../err
Obtains all valid (not yet expired) reminders set by the current application. This API uses a promise to return the reminders.
Obtains all valid (not yet expired) reminders set by the current application. This API uses a promise to return the reminders.
...
@@ -279,7 +266,7 @@ Obtains all valid (not yet expired) reminders set by the current application. Th
...
@@ -279,7 +266,7 @@ Obtains all valid (not yet expired) reminders set by the current application. Th
| Type| Description|
| Type| Description|
| -------- | -------- |
| -------- | -------- |
| Promise\<Array\<[ReminderRequest](#reminderrequest)\>\> | Promise used to return an array of all valid reminders set by the current application.|
| Promise<Array<[ReminderRequest](#reminderrequest)>> | Promise used to return an array of all valid reminders set by the current application.|
**Error codes**
**Error codes**
...
@@ -291,7 +278,7 @@ For details about the error codes, see [reminderAgentManager Error Codes](../err
...
@@ -291,7 +278,7 @@ For details about the error codes, see [reminderAgentManager Error Codes](../err
| repeatMonths | Array\<number\> | No| Month in which the reminder repeats.|
| repeatMonths | Array<number> | No| Month in which the reminder repeats.|
| repeatDays | Array\<number\> | No| Date on which the reminder repeats.|
| repeatDays | Array<number> | No| Date on which the reminder repeats.|
## ReminderRequestAlarm
## ReminderRequestAlarm
...
@@ -671,7 +646,7 @@ Defines a reminder for an alarm.
...
@@ -671,7 +646,7 @@ Defines a reminder for an alarm.
| -------- | -------- | -------- | -------- |
| -------- | -------- | -------- | -------- |
| hour | number | Yes| Hour portion of the reminder time.|
| hour | number | Yes| Hour portion of the reminder time.|
| minute | number | Yes| Minute portion of the reminder time.|
| minute | number | Yes| Minute portion of the reminder time.|
| daysOfWeek | Array\<number\> | No| Days of a week when the reminder repeats. The value ranges from 1 to 7, corresponding to the data from Monday to Sunday.|
| daysOfWeek | Array<number> | No| Days of a week when the reminder repeats. The value ranges from 1 to 7, corresponding to the data from Monday to Sunday.|
## ReminderRequestTimer
## ReminderRequestTimer
...
@@ -696,8 +671,8 @@ Sets the time information for a calendar reminder.
...
@@ -696,8 +671,8 @@ Sets the time information for a calendar reminder.
| Name| Type| Mandatory| Description|
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| -------- | -------- | -------- | -------- |
| year | number | Yes| Year.|
| year | number | Yes| Year.|
| month | number | Yes| Month.|
| month | number | Yes| Month. The value ranges from 1 to 12.|
| day | number | Yes| Date.|
| day | number | Yes| Day. The value ranges from 1 to 31.|
| hour | number | Yes| Hour.|
| hour | number | Yes| Hour. The value ranges from 0 to 23.|
| minute | number | Yes| Minute.|
| minute | number | Yes| Minute. The value ranges from 0 to 59.|
| second | number | No| Second.|
| second | number | No| Second. The value ranges from 0 to 59.|
@@ -26,7 +26,7 @@ Formats the specified values and inserts them into the string by replacing the w
...
@@ -26,7 +26,7 @@ Formats the specified values and inserts them into the string by replacing the w
| Name | Type | Mandatory| Description |
| Name | Type | Mandatory| Description |
| ------- | -------- | ---- | -------------- |
| ------- | -------- | ---- | -------------- |
| format | string | Yes | String.|
| format | string | Yes | String.|
| ...args | Object[] | No | Values to format. The formatted values will be replaced the wildcard in the string. |
| ...args | Object[] | No | Values to format. The formatted values will replace the wildcard in the string. If this parameter is not set, the first parameter is returned by default.|
**Return value**
**Return value**
...
@@ -69,6 +69,20 @@ let result = util.errnoToString(errnum);
...
@@ -69,6 +69,20 @@ let result = util.errnoToString(errnum);
@@ -201,7 +220,7 @@ Uses a secure random number generator to generate a random binary UUID of RFC 41
...
@@ -201,7 +220,7 @@ Uses a secure random number generator to generate a random binary UUID of RFC 41
parseUUID(uuid: string): Uint8Array
parseUUID(uuid: string): Uint8Array
Parses a UUID from a string, as described in RFC 4122 version 4.
Converts the UUID of the string type generated by **generateRandomUUID** to the UUID of the **Uint8Array** type generated by **generateRandomBinaryUUID**, as described in RFC 4122 version 4.
@@ -243,7 +262,7 @@ Formats the specified values and inserts them into the string by replacing the w
...
@@ -243,7 +262,7 @@ Formats the specified values and inserts them into the string by replacing the w
| Name| Type| Mandatory| Description|
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| -------- | -------- | -------- | -------- |
| format | string | Yes| String.|
| format | string | Yes| String.|
| ...args | Object[] | No| Values to format. The formatted values will be replaced the wildcard in the string.|
| ...args | Object[] | No| Values to format. The formatted values will replace the wildcard in the string. If this parameter is not set, the first parameter is returned by default.|
**Return value**
**Return value**
...
@@ -361,8 +380,8 @@ Creates a **TextDecoder** object. It provides the same function as the deprecate
...
@@ -361,8 +380,8 @@ Creates a **TextDecoder** object. It provides the same function as the deprecate
| isEvict | boolean | Yes | Whether the cache capacity is insufficient. If the value is **true**, this method is called due to insufficient capacity. |
| isEvict | boolean | Yes | Whether the cache capacity is insufficient. If the value is **true**, this API is called due to insufficient capacity. |
| key | K | Yes | Key removed. |
| key | K | Yes | Key removed. |
| value | V | Yes | Value removed. |
| value | V | Yes | Value removed. |
| newValue | V | Yes | New value for the key if the **put()** method is called and the key to be added already exists. In other cases, this parameter is left blank.|
| newValue | V | Yes | New value for the key if the **put()** method is called and the key to be added already exists. In other cases, this parameter is left blank.|
...
@@ -3358,7 +3378,7 @@ A constructor used to create a **LruBuffer** instance. The default capacity of t
...
@@ -3358,7 +3378,7 @@ A constructor used to create a **LruBuffer** instance. The default capacity of t
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [constructor<sup>9+</sup>](#constructor9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.constructor<sup>9+</sup>](#constructor9-3) instead.
@@ -3382,7 +3402,7 @@ Changes the **LruBuffer** capacity. If the new capacity is less than or equal to
...
@@ -3382,7 +3402,7 @@ Changes the **LruBuffer** capacity. If the new capacity is less than or equal to
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [updateCapacity<sup>9+</sup>](#updatecapacity9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.updateCapacity<sup>9+</sup>](#updatecapacity9) instead.
@@ -3407,7 +3427,7 @@ Obtains the string representation of this **LruBuffer** object.
...
@@ -3407,7 +3427,7 @@ Obtains the string representation of this **LruBuffer** object.
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [toString<sup>9+</sup>](#tostring9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.toString<sup>9+</sup>](#tostring9) instead.
@@ -3435,7 +3455,7 @@ Obtains the capacity of this buffer.
...
@@ -3435,7 +3455,7 @@ Obtains the capacity of this buffer.
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getCapacity<sup>9+</sup>](#getcapacity9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.getCapacity<sup>9+</sup>](#getcapacity9) instead.
@@ -3480,7 +3500,7 @@ Obtains the number of return values for **createDefault()**.
...
@@ -3480,7 +3500,7 @@ Obtains the number of return values for **createDefault()**.
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getCreateCount<sup>9+</sup>](#getcreatecount9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.getCreateCount<sup>9+</sup>](#getcreatecount9) instead.
@@ -3506,7 +3526,7 @@ Obtains the number of times that the queried values are mismatched.
...
@@ -3506,7 +3526,7 @@ Obtains the number of times that the queried values are mismatched.
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getMissCount<sup>9+</sup>](#getmisscount9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.getMissCount<sup>9+</sup>](#getmisscount9) instead.
@@ -3533,7 +3553,7 @@ Obtains the number of removals from this buffer.
...
@@ -3533,7 +3553,7 @@ Obtains the number of removals from this buffer.
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getRemovalCount<sup>9+</sup>](#getremovalcount9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.getRemovalCount<sup>9+</sup>](#getremovalcount9) instead.
@@ -3561,7 +3581,7 @@ Obtains the number of times that the queried values are matched.
...
@@ -3561,7 +3581,7 @@ Obtains the number of times that the queried values are matched.
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getMatchCount<sup>9+</sup>](#getmatchcount9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.getMatchCount<sup>9+</sup>](#getmatchcount9) instead.
@@ -3588,7 +3608,7 @@ Obtains the number of additions to this buffer.
...
@@ -3588,7 +3608,7 @@ Obtains the number of additions to this buffer.
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getPutCount<sup>9+</sup>](#getputcount9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.getPutCount<sup>9+</sup>](#getputcount9) instead.
@@ -3614,7 +3634,7 @@ Checks whether this buffer is empty.
...
@@ -3614,7 +3634,7 @@ Checks whether this buffer is empty.
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [isEmpty<sup>9+</sup>](#isempty9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.isEmpty<sup>9+</sup>](#isempty9) instead.
@@ -3704,7 +3724,7 @@ Obtains all values in this buffer, listed from the most to the least recently ac
...
@@ -3704,7 +3724,7 @@ Obtains all values in this buffer, listed from the most to the least recently ac
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [values<sup>9+</sup>](#values9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.values<sup>9+</sup>](#values9) instead.
@@ -3743,6 +3763,7 @@ Obtains all keys in this buffer, listed from the most to the least recently acce
...
@@ -3743,6 +3763,7 @@ Obtains all keys in this buffer, listed from the most to the least recently acce
| K [] | All keys in the buffer, listed from the most to the least recently accessed.|
| K [] | All keys in the buffer, listed from the most to the least recently accessed.|
**Example**
**Example**
```js
```js
letpro=newutil.LruBuffer();
letpro=newutil.LruBuffer();
pro.put(2,10);
pro.put(2,10);
...
@@ -3757,7 +3778,7 @@ Removes the specified key and its value from this buffer.
...
@@ -3757,7 +3778,7 @@ Removes the specified key and its value from this buffer.
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [remove<sup>9+</sup>](#remove9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.remove<sup>9+</sup>](#remove9) instead.
@@ -3788,7 +3809,7 @@ Performs subsequent operations after a value is removed.
...
@@ -3788,7 +3809,7 @@ Performs subsequent operations after a value is removed.
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [afterRemoval<sup>9+</sup>](#afterremoval9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.afterRemoval<sup>9+</sup>](#afterremoval9) instead.
@@ -3796,7 +3817,7 @@ Performs subsequent operations after a value is removed.
...
@@ -3796,7 +3817,7 @@ Performs subsequent operations after a value is removed.
| Name| Type| Mandatory| Description|
| Name| Type| Mandatory| Description|
| -------- | -------- | -------- | -------- |
| -------- | -------- | -------- | -------- |
| isEvict | boolean | Yes| Whether the buffer capacity is insufficient. If the value is **true**, this method is called due to insufficient capacity.|
| isEvict | boolean | Yes| Whether the buffer capacity is insufficient. If the value is **true**, this API is called due to insufficient capacity.|
| key | K | Yes| Key removed.|
| key | K | Yes| Key removed.|
| value | V | Yes| Value removed.|
| value | V | Yes| Value removed.|
| newValue | V | Yes| New value for the key if the **put()** method is called and the key to be added already exists. In other cases, this parameter is left blank.|
| newValue | V | Yes| New value for the key if the **put()** method is called and the key to be added already exists. In other cases, this parameter is left blank.|
...
@@ -3832,7 +3853,7 @@ Checks whether this buffer contains the specified key.
...
@@ -3832,7 +3853,7 @@ Checks whether this buffer contains the specified key.
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [contains<sup>9+</sup>](#contains9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.contains<sup>9+</sup>](#contains9) instead.
@@ -3864,7 +3885,7 @@ Creates a value if the value of the specified key is not available.
...
@@ -3864,7 +3885,7 @@ Creates a value if the value of the specified key is not available.
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [createDefault<sup>9+</sup>](#createdefault9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.createDefault<sup>9+</sup>](#createdefault9) instead.
@@ -3895,7 +3916,7 @@ Obtains a new iterator object that contains all key-value pairs in this object.
...
@@ -3895,7 +3916,7 @@ Obtains a new iterator object that contains all key-value pairs in this object.
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [entries<sup>9+</sup>](#entries9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.entries<sup>9+</sup>](#entries9) instead.
@@ -3921,7 +3942,7 @@ Obtains a two-dimensional array in key-value pairs.
...
@@ -3921,7 +3942,7 @@ Obtains a two-dimensional array in key-value pairs.
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [Symbol.iterator<sup>9+</sup>](#symboliterator9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [LRUCache.Symbol.iterator<sup>9+</sup>](#symboliterator9) instead.
@@ -3953,7 +3974,7 @@ A constructor used to create a **Scope** object with the specified upper and low
...
@@ -3953,7 +3974,7 @@ A constructor used to create a **Scope** object with the specified upper and low
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [constructor<sup>9+</sup>](#constructor9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.constructor<sup>9+</sup>](#constructor9-4) instead.
@@ -3980,7 +4001,7 @@ Obtains a string representation that contains this **Scope**.
...
@@ -3980,7 +4001,7 @@ Obtains a string representation that contains this **Scope**.
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [toString<sup>9+</sup>](#tostring9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.toString<sup>9+</sup>](#tostring9-1) instead.
@@ -4007,7 +4028,7 @@ Obtains the intersection of this **Scope** and the given **Scope**.
...
@@ -4007,7 +4028,7 @@ Obtains the intersection of this **Scope** and the given **Scope**.
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [intersect<sup>9+</sup>](#intersect9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.intersect<sup>9+</sup>](#intersect9) instead.
@@ -4043,7 +4064,7 @@ Obtains the intersection of this **Scope** and the given lower and upper limits.
...
@@ -4043,7 +4064,7 @@ Obtains the intersection of this **Scope** and the given lower and upper limits.
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [intersect<sup>9+</sup>](#intersect9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.intersect<sup>9+</sup>](#intersect9-1) instead.
@@ -4079,7 +4100,7 @@ Obtains the upper limit of this **Scope**.
...
@@ -4079,7 +4100,7 @@ Obtains the upper limit of this **Scope**.
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getUpper<sup>9+</sup>](#getupper9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.getUpper<sup>9+</sup>](#getupper9) instead.
@@ -4106,7 +4127,7 @@ Obtains the lower limit of this **Scope**.
...
@@ -4106,7 +4127,7 @@ Obtains the lower limit of this **Scope**.
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [getLower<sup>9+</sup>](#getlower9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.getLower<sup>9+</sup>](#getlower9) instead.
@@ -4133,7 +4154,7 @@ Obtains the union set of this **Scope** and the given lower and upper limits.
...
@@ -4133,7 +4154,7 @@ Obtains the union set of this **Scope** and the given lower and upper limits.
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [expand<sup>9+</sup>](#expand9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.expand<sup>9+</sup>](#expand9) instead.
@@ -4169,7 +4190,7 @@ Obtains the union set of this **Scope** and the given **Scope**.
...
@@ -4169,7 +4190,7 @@ Obtains the union set of this **Scope** and the given **Scope**.
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [expand<sup>9+</sup>](#expand9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.expand<sup>9+</sup>](#expand9-1) instead.
@@ -4205,7 +4226,7 @@ Obtains the union set of this **Scope** and the given value.
...
@@ -4205,7 +4226,7 @@ Obtains the union set of this **Scope** and the given value.
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [expand<sup>9+</sup>](#expand9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.expand<sup>9+</sup>](#expand9-2) instead.
@@ -4239,7 +4260,7 @@ Checks whether a value is within this **Scope**.
...
@@ -4239,7 +4260,7 @@ Checks whether a value is within this **Scope**.
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [contains<sup>9+</sup>](#contains9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.contains<sup>9+</sup>](#contains9-1) instead.
@@ -4273,7 +4294,7 @@ Checks whether a range is within this **Scope**.
...
@@ -4273,7 +4294,7 @@ Checks whether a range is within this **Scope**.
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [contains<sup>9+</sup>](#contains9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.contains<sup>9+</sup>](#contains9-2) instead.
@@ -4310,7 +4331,7 @@ Limits a value to this **Scope**.
...
@@ -4310,7 +4331,7 @@ Limits a value to this **Scope**.
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [clamp<sup>9+</sup>](#clamp9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [ScopeHelper.clamp<sup>9+</sup>](#clamp9) instead.
@@ -4351,7 +4372,7 @@ A constructor used to create a **Base64** object.
...
@@ -4351,7 +4372,7 @@ A constructor used to create a **Base64** object.
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [constructor<sup>9+</sup>](#constructor9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [Base64Helper.constructor<sup>9+</sup>](#constructor9-5) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [encodeSync<sup>9+</sup>](#encodesync9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [Base64Helper.encodeSync<sup>9+</sup>](#encodesync9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [encodeToStringSync<sup>9+</sup>](#encodetostringsync9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [Base64Helper.encodeToStringSync<sup>9+</sup>](#encodetostringsync9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [decodeSync<sup>9+</sup>](#decodesync9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [Base64Helper.decodeSync<sup>9+</sup>](#decodesync9) instead.
@@ -4465,7 +4486,7 @@ Encodes the input content asynchronously.
...
@@ -4465,7 +4486,7 @@ Encodes the input content asynchronously.
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [encode<sup>9+</sup>](#encode9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [Base64Helper.encode<sup>9+</sup>](#encode9) instead.
@@ -4502,7 +4523,7 @@ Encodes the input content asynchronously.
...
@@ -4502,7 +4523,7 @@ Encodes the input content asynchronously.
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [encodeToString<sup>9+</sup>](#encodetostring9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [Base64Helper.encodeToString<sup>9+</sup>](#encodetostring9) instead.
@@ -4537,7 +4558,7 @@ Decodes the input content asynchronously.
...
@@ -4537,7 +4558,7 @@ Decodes the input content asynchronously.
> **NOTE**
> **NOTE**
>
>
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [decode<sup>9+</sup>](#decode9) instead.
> This API is supported since API version 8 and deprecated since API version 9. You are advised to use [Base64Helper.decode<sup>9+</sup>](#decode9) instead.