1/* 2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16/** 17 * @file 18 * @kit ArkTS 19 */ 20 21/** 22 * LightWeightSet stores a set of values, each of which must be unique. 23 * 24 * @syscap SystemCapability.Utils.Lang 25 * @since 8 26 */ 27/** 28 * LightWeightSet stores a set of values, each of which must be unique. 29 * 30 * @syscap SystemCapability.Utils.Lang 31 * @crossplatform 32 * @since 10 33 */ 34/** 35 * LightWeightSet stores a set of values, each of which must be unique. 36 * 37 * @syscap SystemCapability.Utils.Lang 38 * @crossplatform 39 * @atomicservice 40 * @since 12 41 */ 42declare class LightWeightSet<T> { 43 /** 44 * A constructor used to create a LightWeightSet object. 45 * 46 * @throws { BusinessError } 10200012 - The LightWeightSet's constructor cannot be directly invoked. 47 * @syscap SystemCapability.Utils.Lang 48 * @since 8 49 */ 50 /** 51 * A constructor used to create a LightWeightSet object. 52 * 53 * @throws { BusinessError } 10200012 - The LightWeightSet's constructor cannot be directly invoked. 54 * @syscap SystemCapability.Utils.Lang 55 * @crossplatform 56 * @since 10 57 */ 58 /** 59 * A constructor used to create a LightWeightSet object. 60 * 61 * @throws { BusinessError } 10200012 - The LightWeightSet's constructor cannot be directly invoked. 62 * @syscap SystemCapability.Utils.Lang 63 * @crossplatform 64 * @atomicservice 65 * @since 12 66 */ 67 constructor(); 68 /** 69 * Gets the element number of the LightWeightSet. 70 * 71 * @syscap SystemCapability.Utils.Lang 72 * @since 8 73 */ 74 /** 75 * Gets the element number of the LightWeightSet. 76 * 77 * @syscap SystemCapability.Utils.Lang 78 * @crossplatform 79 * @since 10 80 */ 81 /** 82 * Gets the element number of the LightWeightSet. 83 * 84 * @syscap SystemCapability.Utils.Lang 85 * @crossplatform 86 * @atomicservice 87 * @since 12 88 */ 89 length: number; 90 /** 91 * If the set does not contain the element, the specified element is added 92 * 93 * @param { T } obj - obj obj Added element 94 * @returns { boolean } the boolean type(Is there contain this element) 95 * @throws { BusinessError } 10200011 - The add method cannot be bound. 96 * @syscap SystemCapability.Utils.Lang 97 * @since 8 98 */ 99 /** 100 * If the set does not contain the element, the specified element is added 101 * 102 * @param { T } obj - obj obj Added element 103 * @returns { boolean } the boolean type(Is there contain this element) 104 * @throws { BusinessError } 10200011 - The add method cannot be bound. 105 * @syscap SystemCapability.Utils.Lang 106 * @crossplatform 107 * @since 10 108 */ 109 /** 110 * If the set does not contain the element, the specified element is added 111 * 112 * @param { T } obj - obj obj Added element 113 * @returns { boolean } the boolean type(Is there contain this element) 114 * @throws { BusinessError } 10200011 - The add method cannot be bound. 115 * @syscap SystemCapability.Utils.Lang 116 * @crossplatform 117 * @atomicservice 118 * @since 12 119 */ 120 add(obj: T): boolean; 121 /** 122 * Adds all the objects in a specified LightWeightSet container to the current LightWeightSet container 123 * 124 * @param { LightWeightSet<T> } set - set set the Set object to provide the added element 125 * @returns { boolean } the boolean type(Is there any new data added successfully) 126 * @throws { BusinessError } 10200011 - The addAll method cannot be bound. 127 * @throws { BusinessError } 401 - Parameter error. Possible causes: 128 * 1.Mandatory parameters are left unspecified; 129 * 2.Incorrect parameter types. 130 * @syscap SystemCapability.Utils.Lang 131 * @since 8 132 */ 133 /** 134 * Adds all the objects in a specified LightWeightSet container to the current LightWeightSet container 135 * 136 * @param { LightWeightSet<T> } set - set set the Set object to provide the added element 137 * @returns { boolean } the boolean type(Is there any new data added successfully) 138 * @throws { BusinessError } 10200011 - The addAll method cannot be bound. 139 * @throws { BusinessError } 401 - Parameter error. Possible causes: 140 * 1.Mandatory parameters are left unspecified; 141 * 2.Incorrect parameter types. 142 * @syscap SystemCapability.Utils.Lang 143 * @crossplatform 144 * @since 10 145 */ 146 /** 147 * Adds all the objects in a specified LightWeightSet container to the current LightWeightSet container 148 * 149 * @param { LightWeightSet<T> } set - set set the Set object to provide the added element 150 * @returns { boolean } the boolean type(Is there any new data added successfully) 151 * @throws { BusinessError } 10200011 - The addAll method cannot be bound. 152 * @throws { BusinessError } 401 - Parameter error. Possible causes: 153 * 1.Mandatory parameters are left unspecified; 154 * 2.Incorrect parameter types. 155 * @syscap SystemCapability.Utils.Lang 156 * @crossplatform 157 * @atomicservice 158 * @since 12 159 */ 160 addAll(set: LightWeightSet<T>): boolean; 161 /** 162 * Returns whether this set has all the object in a specified set 163 * 164 * @param { LightWeightSet<T> } set - set set the Set object to compare 165 * @returns { boolean } the boolean type 166 * @throws { BusinessError } 10200011 - The hasAll method cannot be bound. 167 * @throws { BusinessError } 401 - Parameter error. Possible causes: 168 * 1.Mandatory parameters are left unspecified; 169 * 2.Incorrect parameter types. 170 * @syscap SystemCapability.Utils.Lang 171 * @since 8 172 */ 173 /** 174 * Returns whether this set has all the object in a specified set 175 * 176 * @param { LightWeightSet<T> } set - set set the Set object to compare 177 * @returns { boolean } the boolean type 178 * @throws { BusinessError } 10200011 - The hasAll method cannot be bound. 179 * @throws { BusinessError } 401 - Parameter error. Possible causes: 180 * 1.Mandatory parameters are left unspecified; 181 * 2.Incorrect parameter types. 182 * @syscap SystemCapability.Utils.Lang 183 * @crossplatform 184 * @since 10 185 */ 186 /** 187 * Returns whether this set has all the object in a specified set 188 * 189 * @param { LightWeightSet<T> } set - set set the Set object to compare 190 * @returns { boolean } the boolean type 191 * @throws { BusinessError } 10200011 - The hasAll method cannot be bound. 192 * @throws { BusinessError } 401 - Parameter error. Possible causes: 193 * 1.Mandatory parameters are left unspecified; 194 * 2.Incorrect parameter types. 195 * @syscap SystemCapability.Utils.Lang 196 * @crossplatform 197 * @atomicservice 198 * @since 12 199 */ 200 hasAll(set: LightWeightSet<T>): boolean; 201 /** 202 * Checks whether an LightWeightSet container has a specified key 203 * 204 * @param { T } key - key key need to determine whether to include the key 205 * @returns { boolean } the boolean type 206 * @throws { BusinessError } 10200011 - The has method cannot be bound. 207 * @syscap SystemCapability.Utils.Lang 208 * @since 8 209 */ 210 /** 211 * Checks whether an LightWeightSet container has a specified key 212 * 213 * @param { T } key - key key need to determine whether to include the key 214 * @returns { boolean } the boolean type 215 * @throws { BusinessError } 10200011 - The has method cannot be bound. 216 * @syscap SystemCapability.Utils.Lang 217 * @crossplatform 218 * @since 10 219 */ 220 /** 221 * Checks whether an LightWeightSet container has a specified key 222 * 223 * @param { T } key - key key need to determine whether to include the key 224 * @returns { boolean } the boolean type 225 * @throws { BusinessError } 10200011 - The has method cannot be bound. 226 * @syscap SystemCapability.Utils.Lang 227 * @crossplatform 228 * @atomicservice 229 * @since 12 230 */ 231 has(key: T): boolean; 232 /** 233 * Checks whether an the objects of an LightWeighSet container are of the same type as a specified Object LightWeightSet 234 * 235 * @param { Object } obj - obj obj need to determine whether to include the obj 236 * @returns { boolean } the boolean type 237 * @throws { BusinessError } 10200011 - The equal method cannot be bound. 238 * @syscap SystemCapability.Utils.Lang 239 * @since 8 240 */ 241 /** 242 * Checks whether an the objects of an LightWeighSet container are of the same type as a specified Object LightWeightSet 243 * 244 * @param { Object } obj - obj obj need to determine whether to include the obj 245 * @returns { boolean } the boolean type 246 * @throws { BusinessError } 10200011 - The equal method cannot be bound. 247 * @syscap SystemCapability.Utils.Lang 248 * @crossplatform 249 * @since 10 250 * @deprecated since 12 251 */ 252 equal(obj: Object): boolean; 253 /** 254 * Ensures that the capacity of an LightWeightSet container is greater than or equal to a specified value, 255 * and that the container has all the original objects after capacity expansion 256 * 257 * @param { number } minimumCapacity Minimum capacity to be reserved 258 * @throws { BusinessError } 10200011 - The increaseCapacityTo method cannot be bound. 259 * @throws { BusinessError } 401 - Parameter error. Possible causes: 260 * 1.Mandatory parameters are left unspecified; 261 * 2.Incorrect parameter types; 262 * 3.Parameter verification failed. 263 * @throws { BusinessError } 10200001 - The value of minimumCapacity is out of range. 264 * @syscap SystemCapability.Utils.Lang 265 * @since 8 266 */ 267 /** 268 * Ensures that the capacity of an LightWeightSet container is greater than or equal to a specified value, 269 * and that the container has all the original objects after capacity expansion 270 * 271 * @param { number } minimumCapacity Minimum capacity to be reserved 272 * @throws { BusinessError } 10200011 - The increaseCapacityTo method cannot be bound. 273 * @throws { BusinessError } 401 - Parameter error. Possible causes: 274 * 1.Mandatory parameters are left unspecified; 275 * 2.Incorrect parameter types; 276 * 3.Parameter verification failed. 277 * @throws { BusinessError } 10200001 - The value of minimumCapacity is out of range. 278 * @syscap SystemCapability.Utils.Lang 279 * @crossplatform 280 * @since 10 281 */ 282 /** 283 * Ensures that the capacity of an LightWeightSet container is greater than or equal to a specified value, 284 * and that the container has all the original objects after capacity expansion 285 * 286 * @param { number } minimumCapacity Minimum capacity to be reserved 287 * @throws { BusinessError } 10200011 - The increaseCapacityTo method cannot be bound. 288 * @throws { BusinessError } 401 - Parameter error. Possible causes: 289 * 1.Mandatory parameters are left unspecified; 290 * 2.Incorrect parameter types; 291 * 3.Parameter verification failed. 292 * @throws { BusinessError } 10200001 - The value of minimumCapacity is out of range. 293 * @syscap SystemCapability.Utils.Lang 294 * @crossplatform 295 * @atomicservice 296 * @since 12 297 */ 298 increaseCapacityTo(minimumCapacity: number): void; 299 /** 300 * Obtains the index of s key of a specified Object type in an LightWeightSet container 301 * 302 * @param { T } key - key key Looking for goals 303 * @returns { number } Subscript corresponding to target 304 * @throws { BusinessError } 10200011 - The getIndexOf method cannot be bound. 305 * @syscap SystemCapability.Utils.Lang 306 * @since 8 307 */ 308 /** 309 * Obtains the index of s key of a specified Object type in an LightWeightSet container 310 * 311 * @param { T } key - key key Looking for goals 312 * @returns { number } Subscript corresponding to target 313 * @throws { BusinessError } 10200011 - The getIndexOf method cannot be bound. 314 * @syscap SystemCapability.Utils.Lang 315 * @crossplatform 316 * @since 10 317 */ 318 /** 319 * Obtains the index of s key of a specified Object type in an LightWeightSet container 320 * 321 * @param { T } key - key key Looking for goals 322 * @returns { number } Subscript corresponding to target 323 * @throws { BusinessError } 10200011 - The getIndexOf method cannot be bound. 324 * @syscap SystemCapability.Utils.Lang 325 * @crossplatform 326 * @atomicservice 327 * @since 12 328 */ 329 getIndexOf(key: T): number; 330 /** 331 * Deletes an object of a specified Object type from an LightWeightSet container 332 * 333 * @param { T } key - key key Target to be deleted 334 * @returns { T } Target element 335 * @throws { BusinessError } 10200011 - The remove method cannot be bound. 336 * @syscap SystemCapability.Utils.Lang 337 * @since 8 338 */ 339 /** 340 * Deletes an object of a specified Object type from an LightWeightSet container 341 * 342 * @param { T } key - key key Target to be deleted 343 * @returns { T } Target element 344 * @throws { BusinessError } 10200011 - The remove method cannot be bound. 345 * @syscap SystemCapability.Utils.Lang 346 * @crossplatform 347 * @since 10 348 */ 349 /** 350 * Deletes an object of a specified Object type from an LightWeightSet container 351 * 352 * @param { T } key - key key Target to be deleted 353 * @returns { T } Target element 354 * @throws { BusinessError } 10200011 - The remove method cannot be bound. 355 * @syscap SystemCapability.Utils.Lang 356 * @crossplatform 357 * @atomicservice 358 * @since 12 359 */ 360 remove(key: T): T; 361 /** 362 * Deletes an object at the location identified by index from an LightWeightSet container 363 * 364 * @param { number } index - index index Target subscript for search 365 * @returns { boolean } the boolean type(Is there a delete value) 366 * @throws { BusinessError } 10200011 - The removeAt method cannot be bound. 367 * @throws { BusinessError } 401 - Parameter error. Possible causes: 368 * 1.Mandatory parameters are left unspecified; 369 * 2.Incorrect parameter types. 370 * @syscap SystemCapability.Utils.Lang 371 * @since 8 372 */ 373 /** 374 * Deletes an object at the location identified by index from an LightWeightSet container 375 * 376 * @param { number } index - index index Target subscript for search 377 * @returns { boolean } the boolean type(Is there a delete value) 378 * @throws { BusinessError } 10200011 - The removeAt method cannot be bound. 379 * @throws { BusinessError } 401 - Parameter error. Possible causes: 380 * 1.Mandatory parameters are left unspecified; 381 * 2.Incorrect parameter types. 382 * @syscap SystemCapability.Utils.Lang 383 * @crossplatform 384 * @since 10 385 */ 386 /** 387 * Deletes an object at the location identified by index from an LightWeightSet container 388 * 389 * @param { number } index - index index Target subscript for search 390 * @returns { boolean } the boolean type(Is there a delete value) 391 * @throws { BusinessError } 10200011 - The removeAt method cannot be bound. 392 * @throws { BusinessError } 401 - Parameter error. Possible causes: 393 * 1.Mandatory parameters are left unspecified; 394 * 2.Incorrect parameter types. 395 * @syscap SystemCapability.Utils.Lang 396 * @crossplatform 397 * @atomicservice 398 * @since 12 399 */ 400 removeAt(index: number): boolean; 401 /** 402 * Removes all of the mapping from this map 403 * The map will be empty after this call returns 404 * 405 * @throws { BusinessError } 10200011 - The clear method cannot be bound. 406 * @syscap SystemCapability.Utils.Lang 407 * @since 8 408 */ 409 /** 410 * Removes all of the mapping from this map 411 * The map will be empty after this call returns 412 * 413 * @throws { BusinessError } 10200011 - The clear method cannot be bound. 414 * @syscap SystemCapability.Utils.Lang 415 * @crossplatform 416 * @since 10 417 */ 418 /** 419 * Removes all of the mapping from this map 420 * The map will be empty after this call returns 421 * 422 * @throws { BusinessError } 10200011 - The clear method cannot be bound. 423 * @syscap SystemCapability.Utils.Lang 424 * @crossplatform 425 * @atomicservice 426 * @since 12 427 */ 428 clear(): void; 429 /** 430 * Executes the given callback function once for each real key in the map. 431 * It does not perform functions on deleted keys. 432 * 433 * @param { function } callbackFn - callbackFn 434 * callbackFn (required) A function that accepts up to three arguments. 435 * The function to be called for each element. 436 * @param { Object } [thisArg] - thisArg 437 * thisArg (Optional) The value to be used as this value for when callbackFn is called. 438 * If thisArg is omitted, undefined is used as the this value. 439 * @throws { BusinessError } 10200011 - The forEach method cannot be bound. 440 * @throws { BusinessError } 401 - Parameter error. Possible causes: 441 * 1.Mandatory parameters are left unspecified; 442 * 2.Incorrect parameter types. 443 * @syscap SystemCapability.Utils.Lang 444 * @since 8 445 */ 446 /** 447 * Executes the given callback function once for each real key in the map. 448 * It does not perform functions on deleted keys. 449 * 450 * @param { function } callbackFn - callbackFn 451 * callbackFn (required) A function that accepts up to three arguments. 452 * The function to be called for each element. 453 * @param { Object } [thisArg] - thisArg 454 * thisArg (Optional) The value to be used as this value for when callbackFn is called. 455 * If thisArg is omitted, undefined is used as the this value. 456 * @throws { BusinessError } 10200011 - The forEach method cannot be bound. 457 * @throws { BusinessError } 401 - Parameter error. Possible causes: 458 * 1.Mandatory parameters are left unspecified; 459 * 2.Incorrect parameter types. 460 * @syscap SystemCapability.Utils.Lang 461 * @crossplatform 462 * @since 10 463 */ 464 /** 465 * Executes the given callback function once for each real key in the map. 466 * It does not perform functions on deleted keys. 467 * 468 * @param { function } callbackFn - callbackFn 469 * callbackFn (required) A function that accepts up to three arguments. 470 * The function to be called for each element. 471 * @param { Object } [thisArg] - thisArg 472 * thisArg (Optional) The value to be used as this value for when callbackFn is called. 473 * If thisArg is omitted, undefined is used as the this value. 474 * @throws { BusinessError } 10200011 - The forEach method cannot be bound. 475 * @throws { BusinessError } 401 - Parameter error. Possible causes: 476 * 1.Mandatory parameters are left unspecified; 477 * 2.Incorrect parameter types. 478 * @syscap SystemCapability.Utils.Lang 479 * @crossplatform 480 * @atomicservice 481 * @since 12 482 */ 483 forEach(callbackFn: (value?: T, key?: T, set?: LightWeightSet<T>) => void, thisArg?: Object): void; 484 /** 485 * returns an ES6 iterator.Each item of the iterator is a Javascript Object 486 * 487 * @returns { IterableIterator<T> } 488 * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound. 489 * @syscap SystemCapability.Utils.Lang 490 * @since 8 491 */ 492 /** 493 * returns an ES6 iterator.Each item of the iterator is a Javascript Object 494 * 495 * @returns { IterableIterator<T> } 496 * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound. 497 * @syscap SystemCapability.Utils.Lang 498 * @crossplatform 499 * @since 10 500 */ 501 /** 502 * returns an ES6 iterator.Each item of the iterator is a Javascript Object 503 * 504 * @returns { IterableIterator<T> } 505 * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound. 506 * @syscap SystemCapability.Utils.Lang 507 * @crossplatform 508 * @atomicservice 509 * @since 12 510 */ 511 [Symbol.iterator](): IterableIterator<T>; 512 /** 513 * Obtains a string that contains all the keys and values in an LightWeightSet container 514 * 515 * @returns { String } 516 * @syscap SystemCapability.Utils.Lang 517 * @since 8 518 */ 519 /** 520 * Obtains a string that contains all the keys and values in an LightWeightSet container 521 * 522 * @returns { String } 523 * @syscap SystemCapability.Utils.Lang 524 * @crossplatform 525 * @since 10 526 */ 527 /** 528 * Obtains a string that contains all the keys and values in an LightWeightSet container 529 * 530 * @returns { String } 531 * @syscap SystemCapability.Utils.Lang 532 * @crossplatform 533 * @atomicservice 534 * @since 12 535 */ 536 toString(): String; 537 /** 538 * Obtains an Array that contains all the objects of an LightWeightSet container. 539 * 540 * @returns { Array<T> } 541 * @throws { BusinessError } 10200011 - The toArray method cannot be bound. 542 * @syscap SystemCapability.Utils.Lang 543 * @since 8 544 */ 545 /** 546 * Obtains an Array that contains all the objects of an LightWeightSet container. 547 * 548 * @returns { Array<T> } 549 * @throws { BusinessError } 10200011 - The toArray method cannot be bound. 550 * @syscap SystemCapability.Utils.Lang 551 * @crossplatform 552 * @since 10 553 */ 554 /** 555 * Obtains an Array that contains all the objects of an LightWeightSet container. 556 * 557 * @returns { Array<T> } 558 * @throws { BusinessError } 10200011 - The toArray method cannot be bound. 559 * @syscap SystemCapability.Utils.Lang 560 * @crossplatform 561 * @atomicservice 562 * @since 12 563 */ 564 toArray(): Array<T>; 565 /** 566 * Obtains the object at the location identified by index in an LightWeightSet container 567 * 568 * @param { number } index - index index Target subscript for search 569 * @returns { T } the value of key-value pairs 570 * @throws { BusinessError } 10200011 - The getValueAt method cannot be bound. 571 * @throws { BusinessError } 401 - Parameter error. Possible causes: 572 * 1.Mandatory parameters are left unspecified; 573 * 2.Incorrect parameter types. 574 * @syscap SystemCapability.Utils.Lang 575 * @since 8 576 */ 577 /** 578 * Obtains the object at the location identified by index in an LightWeightSet container 579 * 580 * @param { number } index - index index Target subscript for search 581 * @returns { T } the value of key-value pairs 582 * @throws { BusinessError } 10200011 - The getValueAt method cannot be bound. 583 * @throws { BusinessError } 401 - Parameter error. Possible causes: 584 * 1.Mandatory parameters are left unspecified; 585 * 2.Incorrect parameter types. 586 * @syscap SystemCapability.Utils.Lang 587 * @crossplatform 588 * @since 10 589 */ 590 /** 591 * Obtains the object at the location identified by index in an LightWeightSet container 592 * 593 * @param { number } index - index index Target subscript for search 594 * @returns { T } the value of key-value pairs 595 * @throws { BusinessError } 10200011 - The getValueAt method cannot be bound. 596 * @throws { BusinessError } 401 - Parameter error. Possible causes: 597 * 1.Mandatory parameters are left unspecified; 598 * 2.Incorrect parameter types. 599 * @syscap SystemCapability.Utils.Lang 600 * @crossplatform 601 * @atomicservice 602 * @since 12 603 */ 604 getValueAt(index: number): T; 605 /** 606 * Returns a ES6 iterator of the values contained in this Set 607 * 608 * @returns { IterableIterator<T> } 609 * @throws { BusinessError } 10200011 - The values method cannot be bound. 610 * @syscap SystemCapability.Utils.Lang 611 * @since 8 612 */ 613 /** 614 * Returns a ES6 iterator of the values contained in this Set 615 * 616 * @returns { IterableIterator<T> } 617 * @throws { BusinessError } 10200011 - The values method cannot be bound. 618 * @syscap SystemCapability.Utils.Lang 619 * @crossplatform 620 * @since 10 621 */ 622 /** 623 * Returns a ES6 iterator of the values contained in this Set 624 * 625 * @returns { IterableIterator<T> } 626 * @throws { BusinessError } 10200011 - The values method cannot be bound. 627 * @syscap SystemCapability.Utils.Lang 628 * @crossplatform 629 * @atomicservice 630 * @since 12 631 */ 632 values(): IterableIterator<T>; 633 /** 634 * Returns a Iterator object that contains the [key, value] pairs for each element in the Set object in insertion order 635 * 636 * @returns { IterableIterator<[T, T]> } 637 * @throws { BusinessError } 10200011 - The entries method cannot be bound. 638 * @syscap SystemCapability.Utils.Lang 639 * @since 8 640 */ 641 /** 642 * Returns a Iterator object that contains the [key, value] pairs for each element in the Set object in insertion order 643 * 644 * @returns { IterableIterator<[T, T]> } 645 * @throws { BusinessError } 10200011 - The entries method cannot be bound. 646 * @syscap SystemCapability.Utils.Lang 647 * @crossplatform 648 * @since 10 649 */ 650 /** 651 * Returns a Iterator object that contains the [key, value] pairs for each element in the Set object in insertion order 652 * 653 * @returns { IterableIterator<[T, T]> } 654 * @throws { BusinessError } 10200011 - The entries method cannot be bound. 655 * @syscap SystemCapability.Utils.Lang 656 * @crossplatform 657 * @atomicservice 658 * @since 12 659 */ 660 entries(): IterableIterator<[T, T]>; 661 /** 662 * Returns whether the set object contains elements 663 * 664 * @returns { boolean } 665 * @throws { BusinessError } 10200011 - The isEmpty method cannot be bound. 666 * @syscap SystemCapability.Utils.Lang 667 * @since 8 668 */ 669 /** 670 * Returns whether the set object contains elements 671 * 672 * @returns { boolean } 673 * @throws { BusinessError } 10200011 - The isEmpty method cannot be bound. 674 * @syscap SystemCapability.Utils.Lang 675 * @crossplatform 676 * @since 10 677 */ 678 /** 679 * Returns whether the set object contains elements 680 * 681 * @returns { boolean } 682 * @throws { BusinessError } 10200011 - The isEmpty method cannot be bound. 683 * @syscap SystemCapability.Utils.Lang 684 * @crossplatform 685 * @atomicservice 686 * @since 12 687 */ 688 isEmpty(): boolean; 689} 690 691export default LightWeightSet; 692