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 * TreeMap stores key-value (KV) pairs. Each key must be unique and have only one value. 23 * TreeMap is implemented using a red-black tree, which is a binary search tree where keys 24 * are stored in sorted order for efficient insertion and removal. 25 * 26 * @syscap SystemCapability.Utils.Lang 27 * @since 8 28 */ 29/** 30 * TreeMap stores key-value (KV) pairs. Each key must be unique and have only one value. 31 * TreeMap is implemented using a red-black tree, which is a binary search tree where keys 32 * are stored in sorted order for efficient insertion and removal. 33 * 34 * @syscap SystemCapability.Utils.Lang 35 * @crossplatform 36 * @since 10 37 */ 38/** 39 * TreeMap stores key-value (KV) pairs. Each key must be unique and have only one value. 40 * TreeMap is implemented using a red-black tree, which is a binary search tree where keys 41 * are stored in sorted order for efficient insertion and removal. 42 * 43 * @syscap SystemCapability.Utils.Lang 44 * @crossplatform 45 * @atomicservice 46 * @since 12 47 */ 48declare class TreeMap<K, V> { 49 /** 50 * A constructor used to create a TreeMap object. 51 * 52 * @param { function } [comparator] - comparator 53 * comparator (Optional) User-defined comparison functions. 54 * firstValue (required) previous element. 55 * secondValue (required) next element. 56 * @throws { BusinessError } 10200012 - The TreeMap's constructor cannot be directly invoked. 57 * @throws { BusinessError } 401 - Parameter error. Possible causes: 58 * 1.Incorrect parameter types; 59 * 2.Parameter verification failed. 60 * @syscap SystemCapability.Utils.Lang 61 * @since 8 62 */ 63 /** 64 * A constructor used to create a TreeMap object. 65 * 66 * @param { function } [comparator] - comparator 67 * comparator (Optional) User-defined comparison functions. 68 * firstValue (required) previous element. 69 * secondValue (required) next element. 70 * @throws { BusinessError } 10200012 - The TreeMap's constructor cannot be directly invoked. 71 * @throws { BusinessError } 401 - Parameter error. Possible causes: 72 * 1.Incorrect parameter types; 73 * 2.Parameter verification failed. 74 * @syscap SystemCapability.Utils.Lang 75 * @crossplatform 76 * @since 10 77 */ 78 /** 79 * A constructor used to create a TreeMap object. 80 * 81 * @param { function } [comparator] - comparator 82 * comparator (Optional) User-defined comparison functions. 83 * firstValue (required) previous element. 84 * secondValue (required) next element. 85 * @throws { BusinessError } 10200012 - The TreeMap's constructor cannot be directly invoked. 86 * @throws { BusinessError } 401 - Parameter error. Possible causes: 87 * 1.Incorrect parameter types; 88 * 2.Parameter verification failed. 89 * @syscap SystemCapability.Utils.Lang 90 * @crossplatform 91 * @atomicservice 92 * @since 12 93 */ 94 constructor(comparator?: (firstValue: K, secondValue: K) => boolean); 95 /** 96 * Gets the element number of the hashmap. 97 * 98 * @type { number } 99 * @syscap SystemCapability.Utils.Lang 100 * @since 8 101 */ 102 /** 103 * Gets the element number of the hashmap. 104 * 105 * @type { number } 106 * @syscap SystemCapability.Utils.Lang 107 * @crossplatform 108 * @since 10 109 */ 110 /** 111 * Gets the element number of the hashmap. 112 * 113 * @type { number } 114 * @syscap SystemCapability.Utils.Lang 115 * @crossplatform 116 * @atomicservice 117 * @since 12 118 */ 119 length: number; 120 /** 121 * Returns whether the Map object contains elements 122 * 123 * @returns { boolean } the boolean type 124 * @throws { BusinessError } 10200011 - The isEmpty method cannot be bound. 125 * @syscap SystemCapability.Utils.Lang 126 * @since 8 127 */ 128 /** 129 * Returns whether the Map object contains elements 130 * 131 * @returns { boolean } the boolean type 132 * @throws { BusinessError } 10200011 - The isEmpty method cannot be bound. 133 * @syscap SystemCapability.Utils.Lang 134 * @crossplatform 135 * @since 10 136 */ 137 /** 138 * Returns whether the Map object contains elements 139 * 140 * @returns { boolean } the boolean type 141 * @throws { BusinessError } 10200011 - The isEmpty method cannot be bound. 142 * @syscap SystemCapability.Utils.Lang 143 * @crossplatform 144 * @atomicservice 145 * @since 12 146 */ 147 isEmpty(): boolean; 148 /** 149 * Returns whether a key is contained in this map 150 * 151 * @param { K } key - key key need to determine whether to include the key 152 * @returns { boolean } the boolean type 153 * @throws { BusinessError } 10200011 - The hasKey method cannot be bound. 154 * @syscap SystemCapability.Utils.Lang 155 * @since 8 156 */ 157 /** 158 * Returns whether a key is contained in this map 159 * 160 * @param { K } key - key key need to determine whether to include the key 161 * @returns { boolean } the boolean type 162 * @throws { BusinessError } 10200011 - The hasKey method cannot be bound. 163 * @syscap SystemCapability.Utils.Lang 164 * @crossplatform 165 * @since 10 166 */ 167 /** 168 * Returns whether a key is contained in this map 169 * 170 * @param { K } key - key key need to determine whether to include the key 171 * @returns { boolean } the boolean type 172 * @throws { BusinessError } 10200011 - The hasKey method cannot be bound. 173 * @syscap SystemCapability.Utils.Lang 174 * @crossplatform 175 * @atomicservice 176 * @since 12 177 */ 178 hasKey(key: K): boolean; 179 /** 180 * Returns whether a value is contained in this map 181 * 182 * @param { V } value - value value value need to determine whether to include the value 183 * @returns { boolean } the boolean type 184 * @throws { BusinessError } 10200011 - The hasValue method cannot be bound. 185 * @syscap SystemCapability.Utils.Lang 186 * @since 8 187 */ 188 /** 189 * Returns whether a value is contained in this map 190 * 191 * @param { V } value - value value value need to determine whether to include the value 192 * @returns { boolean } the boolean type 193 * @throws { BusinessError } 10200011 - The hasValue method cannot be bound. 194 * @syscap SystemCapability.Utils.Lang 195 * @crossplatform 196 * @since 10 197 */ 198 /** 199 * Returns whether a value is contained in this map 200 * 201 * @param { V } value - value value value need to determine whether to include the value 202 * @returns { boolean } the boolean type 203 * @throws { BusinessError } 10200011 - The hasValue method cannot be bound. 204 * @syscap SystemCapability.Utils.Lang 205 * @crossplatform 206 * @atomicservice 207 * @since 12 208 */ 209 hasValue(value: V): boolean; 210 /** 211 * Returns a specified element in a Map object, or undefined if there is no corresponding element 212 * 213 * @param { K } key - key key the index in TreeMap 214 * @returns { V } value or undefined 215 * @throws { BusinessError } 10200011 - The get method cannot be bound. 216 * @syscap SystemCapability.Utils.Lang 217 * @since 8 218 */ 219 /** 220 * Returns a specified element in a Map object, or undefined if there is no corresponding element 221 * 222 * @param { K } key - key key the index in TreeMap 223 * @returns { V } value or undefined 224 * @throws { BusinessError } 10200011 - The get method cannot be bound. 225 * @syscap SystemCapability.Utils.Lang 226 * @crossplatform 227 * @since 10 228 */ 229 /** 230 * Returns a specified element in a Map object, or undefined if there is no corresponding element 231 * 232 * @param { K } key - key key the index in TreeMap 233 * @returns { V } value or undefined 234 * @throws { BusinessError } 10200011 - The get method cannot be bound. 235 * @syscap SystemCapability.Utils.Lang 236 * @crossplatform 237 * @atomicservice 238 * @since 12 239 */ 240 get(key: K): V; 241 /** 242 * Obtains the first sorted key in the treemap. 243 * Or returns undefined if tree map is empty 244 * 245 * @returns { K } value or undefined 246 * @throws { BusinessError } 10200011 - The getFirstKey method cannot be bound. 247 * @syscap SystemCapability.Utils.Lang 248 * @since 8 249 */ 250 /** 251 * Obtains the first sorted key in the treemap. 252 * Or returns undefined if tree map is empty 253 * 254 * @returns { K } value or undefined 255 * @throws { BusinessError } 10200011 - The getFirstKey method cannot be bound. 256 * @syscap SystemCapability.Utils.Lang 257 * @crossplatform 258 * @since 10 259 */ 260 /** 261 * Obtains the first sorted key in the treemap. 262 * Or returns undefined if tree map is empty 263 * 264 * @returns { K } value or undefined 265 * @throws { BusinessError } 10200011 - The getFirstKey method cannot be bound. 266 * @syscap SystemCapability.Utils.Lang 267 * @crossplatform 268 * @atomicservice 269 * @since 12 270 */ 271 getFirstKey(): K; 272 /** 273 * Obtains the last sorted key in the treemap. 274 * Or returns undefined if tree map is empty 275 * 276 * @returns { K } value or undefined 277 * @throws { BusinessError } 10200011 - The getLastKey method cannot be bound. 278 * @syscap SystemCapability.Utils.Lang 279 * @since 8 280 */ 281 /** 282 * Obtains the last sorted key in the treemap. 283 * Or returns undefined if tree map is empty 284 * 285 * @returns { K } value or undefined 286 * @throws { BusinessError } 10200011 - The getLastKey method cannot be bound. 287 * @syscap SystemCapability.Utils.Lang 288 * @crossplatform 289 * @since 10 290 */ 291 /** 292 * Obtains the last sorted key in the treemap. 293 * Or returns undefined if tree map is empty 294 * 295 * @returns { K } value or undefined 296 * @throws { BusinessError } 10200011 - The getLastKey method cannot be bound. 297 * @syscap SystemCapability.Utils.Lang 298 * @crossplatform 299 * @atomicservice 300 * @since 12 301 */ 302 getLastKey(): K; 303 /** 304 * Adds all element groups in one map to another map 305 * 306 * @param { TreeMap<K, V> } map - map map the Map object to add members 307 * @throws { BusinessError } 10200011 - The setAll method cannot be bound. 308 * @throws { BusinessError } 401 - Parameter error. Possible causes: 309 * 1.Mandatory parameters are left unspecified; 310 * 2.Incorrect parameter types. 311 * @syscap SystemCapability.Utils.Lang 312 * @since 8 313 */ 314 /** 315 * Adds all element groups in one map to another map 316 * 317 * @param { TreeMap<K, V> } map - map map the Map object to add members 318 * @throws { BusinessError } 10200011 - The setAll method cannot be bound. 319 * @throws { BusinessError } 401 - Parameter error. Possible causes: 320 * 1.Mandatory parameters are left unspecified; 321 * 2.Incorrect parameter types. 322 * @syscap SystemCapability.Utils.Lang 323 * @crossplatform 324 * @since 10 325 */ 326 /** 327 * Adds all element groups in one map to another map 328 * 329 * @param { TreeMap<K, V> } map - map map the Map object to add members 330 * @throws { BusinessError } 10200011 - The setAll method cannot be bound. 331 * @throws { BusinessError } 401 - Parameter error. Possible causes: 332 * 1.Mandatory parameters are left unspecified; 333 * 2.Incorrect parameter types. 334 * @syscap SystemCapability.Utils.Lang 335 * @crossplatform 336 * @atomicservice 337 * @since 12 338 */ 339 setAll(map: TreeMap<K, V>): void; 340 /** 341 * Adds or updates a(new) key-value pair with a key and value specified for the Map object 342 * 343 * @param { K } key - key key Added or updated targets 344 * @param { V } value - value value Added or updated value 345 * @returns { Object } the map object after set 346 * @throws { BusinessError } 10200011 - The set method cannot be bound. 347 * @throws { BusinessError } 401 - Parameter error. Possible causes: 348 * 1.Mandatory parameters are left unspecified; 349 * 2.Incorrect parameter types; 350 * 3.Parameter verification failed. 351 * @syscap SystemCapability.Utils.Lang 352 * @since 8 353 */ 354 /** 355 * Adds or updates a(new) key-value pair with a key and value specified for the Map object 356 * 357 * @param { K } key - key key Added or updated targets 358 * @param { V } value - value value Added or updated value 359 * @returns { Object } the map object after set 360 * @throws { BusinessError } 10200011 - The set method cannot be bound. 361 * @throws { BusinessError } 401 - Parameter error. Possible causes: 362 * 1.Mandatory parameters are left unspecified; 363 * 2.Incorrect parameter types; 364 * 3.Parameter verification failed. 365 * @syscap SystemCapability.Utils.Lang 366 * @crossplatform 367 * @since 10 368 */ 369 /** 370 * Adds or updates a(new) key-value pair with a key and value specified for the Map object 371 * 372 * @param { K } key - key key Added or updated targets 373 * @param { V } value - value value Added or updated value 374 * @returns { Object } the map object after set 375 * @throws { BusinessError } 10200011 - The set method cannot be bound. 376 * @throws { BusinessError } 401 - Parameter error. Possible causes: 377 * 1.Mandatory parameters are left unspecified; 378 * 2.Incorrect parameter types; 379 * 3.Parameter verification failed. 380 * @syscap SystemCapability.Utils.Lang 381 * @crossplatform 382 * @atomicservice 383 * @since 12 384 */ 385 set(key: K, value: V): Object; 386 /** 387 * Remove a specified element from a Map object 388 * 389 * @param { K } key - key key Target to be deleted 390 * @returns { V } Target mapped value 391 * @throws { BusinessError } 10200011 - The remove method cannot be bound. 392 * @syscap SystemCapability.Utils.Lang 393 * @since 8 394 */ 395 /** 396 * Remove a specified element from a Map object 397 * 398 * @param { K } key - key key Target to be deleted 399 * @returns { V } Target mapped value 400 * @throws { BusinessError } 10200011 - The remove method cannot be bound. 401 * @syscap SystemCapability.Utils.Lang 402 * @crossplatform 403 * @since 10 404 */ 405 /** 406 * Remove a specified element from a Map object 407 * 408 * @param { K } key - key key Target to be deleted 409 * @returns { V } Target mapped value 410 * @throws { BusinessError } 10200011 - The remove method cannot be bound. 411 * @syscap SystemCapability.Utils.Lang 412 * @crossplatform 413 * @atomicservice 414 * @since 12 415 */ 416 remove(key: K): V; 417 /** 418 * Clear all element groups in the map 419 * 420 * @throws { BusinessError } 10200011 - The clear method cannot be bound. 421 * @syscap SystemCapability.Utils.Lang 422 * @since 8 423 */ 424 /** 425 * Clear all element groups in the map 426 * 427 * @throws { BusinessError } 10200011 - The clear method cannot be bound. 428 * @syscap SystemCapability.Utils.Lang 429 * @crossplatform 430 * @since 10 431 */ 432 /** 433 * Clear all element groups in the map 434 * 435 * @throws { BusinessError } 10200011 - The clear method cannot be bound. 436 * @syscap SystemCapability.Utils.Lang 437 * @crossplatform 438 * @atomicservice 439 * @since 12 440 */ 441 clear(): void; 442 /** 443 * Returns the greatest element smaller than or equal to the specified key 444 * if the key does not exist, undefined is returned 445 * 446 * @param { K } key - key key Objective of comparison 447 * @returns { K } key or undefined 448 * @throws { BusinessError } 10200011 - The getLowerKey method cannot be bound. 449 * @syscap SystemCapability.Utils.Lang 450 * @since 8 451 */ 452 /** 453 * Returns the greatest element smaller than or equal to the specified key 454 * if the key does not exist, undefined is returned 455 * 456 * @param { K } key - key key Objective of comparison 457 * @returns { K } key or undefined 458 * @throws { BusinessError } 10200011 - The getLowerKey method cannot be bound. 459 * @syscap SystemCapability.Utils.Lang 460 * @crossplatform 461 * @since 10 462 */ 463 /** 464 * Returns the greatest element smaller than or equal to the specified key 465 * if the key does not exist, undefined is returned 466 * 467 * @param { K } key - key key Objective of comparison 468 * @returns { K } key or undefined 469 * @throws { BusinessError } 10200011 - The getLowerKey method cannot be bound. 470 * @syscap SystemCapability.Utils.Lang 471 * @crossplatform 472 * @atomicservice 473 * @since 12 474 */ 475 getLowerKey(key: K): K; 476 /** 477 * Returns the least element greater than or equal to the specified key 478 * if the key does not exist, undefined is returned 479 * 480 * @param { K } key - key key Objective of comparison 481 * @returns { K } key or undefined 482 * @throws { BusinessError } 10200011 - The getHigherKey method cannot be bound. 483 * @syscap SystemCapability.Utils.Lang 484 * @since 8 485 */ 486 /** 487 * Returns the least element greater than or equal to the specified key 488 * if the key does not exist, undefined is returned 489 * 490 * @param { K } key - key key Objective of comparison 491 * @returns { K } key or undefined 492 * @throws { BusinessError } 10200011 - The getHigherKey method cannot be bound. 493 * @syscap SystemCapability.Utils.Lang 494 * @crossplatform 495 * @since 10 496 */ 497 /** 498 * Returns the least element greater than or equal to the specified key 499 * if the key does not exist, undefined is returned 500 * 501 * @param { K } key - key key Objective of comparison 502 * @returns { K } key or undefined 503 * @throws { BusinessError } 10200011 - The getHigherKey method cannot be bound. 504 * @syscap SystemCapability.Utils.Lang 505 * @crossplatform 506 * @atomicservice 507 * @since 12 508 */ 509 getHigherKey(key: K): K; 510 /** 511 * Returns a new Iterator object that contains the keys contained in this map 512 * 513 * @returns { IterableIterator<K> } 514 * @throws { BusinessError } 10200011 - The keys method cannot be bound. 515 * @syscap SystemCapability.Utils.Lang 516 * @since 8 517 */ 518 /** 519 * Returns a new Iterator object that contains the keys contained in this map 520 * 521 * @returns { IterableIterator<K> } 522 * @throws { BusinessError } 10200011 - The keys method cannot be bound. 523 * @syscap SystemCapability.Utils.Lang 524 * @crossplatform 525 * @since 10 526 */ 527 /** 528 * Returns a new Iterator object that contains the keys contained in this map 529 * 530 * @returns { IterableIterator<K> } 531 * @throws { BusinessError } 10200011 - The keys method cannot be bound. 532 * @syscap SystemCapability.Utils.Lang 533 * @crossplatform 534 * @atomicservice 535 * @since 12 536 */ 537 keys(): IterableIterator<K>; 538 /** 539 * Returns a new Iterator object that contains the values contained in this map 540 * 541 * @returns { IterableIterator<V> } 542 * @throws { BusinessError } 10200011 - The values method cannot be bound. 543 * @syscap SystemCapability.Utils.Lang 544 * @since 8 545 */ 546 /** 547 * Returns a new Iterator object that contains the values contained in this map 548 * 549 * @returns { IterableIterator<V> } 550 * @throws { BusinessError } 10200011 - The values method cannot be bound. 551 * @syscap SystemCapability.Utils.Lang 552 * @crossplatform 553 * @since 10 554 */ 555 /** 556 * Returns a new Iterator object that contains the values contained in this map 557 * 558 * @returns { IterableIterator<V> } 559 * @throws { BusinessError } 10200011 - The values method cannot be bound. 560 * @syscap SystemCapability.Utils.Lang 561 * @crossplatform 562 * @atomicservice 563 * @since 12 564 */ 565 values(): IterableIterator<V>; 566 /** 567 * Replace the old value by new value corresponding to the specified key 568 * 569 * @param { K } key - key key Updated targets 570 * @param { V } newValue - newValue newValue Updated the target mapped value 571 * @returns { boolean } the boolean type(Is there a target pointed to by the key) 572 * @throws { BusinessError } 10200011 - The replace method cannot be bound. 573 * @syscap SystemCapability.Utils.Lang 574 * @since 8 575 */ 576 /** 577 * Replace the old value by new value corresponding to the specified key 578 * 579 * @param { K } key - key key Updated targets 580 * @param { V } newValue - newValue newValue Updated the target mapped value 581 * @returns { boolean } the boolean type(Is there a target pointed to by the key) 582 * @throws { BusinessError } 10200011 - The replace method cannot be bound. 583 * @syscap SystemCapability.Utils.Lang 584 * @crossplatform 585 * @since 10 586 */ 587 /** 588 * Replace the old value by new value corresponding to the specified key 589 * 590 * @param { K } key - key key Updated targets 591 * @param { V } newValue - newValue newValue Updated the target mapped value 592 * @returns { boolean } the boolean type(Is there a target pointed to by the key) 593 * @throws { BusinessError } 10200011 - The replace method cannot be bound. 594 * @syscap SystemCapability.Utils.Lang 595 * @crossplatform 596 * @atomicservice 597 * @since 12 598 */ 599 replace(key: K, newValue: V): boolean; 600 /** 601 * Executes the given callback function once for each real key in the map. 602 * It does not perform functions on deleted keys 603 * 604 * @param { function } callbackFn - callbackFn 605 * callbackFn (required) A function that accepts up to three arguments. 606 * The function to be called for each element. 607 * @param { Object } [thisArg] - thisArg 608 * thisArg (Optional) The value to be used as this value for when callbackFn is called. 609 * If thisArg is omitted, undefined is used as the this value. 610 * @throws { BusinessError } 10200011 - The forEach method cannot be bound. 611 * @throws { BusinessError } 401 - Parameter error. Possible causes: 612 * 1.Mandatory parameters are left unspecified; 613 * 2.Incorrect parameter types. 614 * @syscap SystemCapability.Utils.Lang 615 * @since 8 616 */ 617 /** 618 * Executes the given callback function once for each real key in the map. 619 * It does not perform functions on deleted keys 620 * 621 * @param { function } callbackFn - callbackFn 622 * callbackFn (required) A function that accepts up to three arguments. 623 * The function to be called for each element. 624 * @param { Object } [thisArg] - thisArg 625 * thisArg (Optional) The value to be used as this value for when callbackFn is called. 626 * If thisArg is omitted, undefined is used as the this value. 627 * @throws { BusinessError } 10200011 - The forEach method cannot be bound. 628 * @throws { BusinessError } 401 - Parameter error. Possible causes: 629 * 1.Mandatory parameters are left unspecified; 630 * 2.Incorrect parameter types. 631 * @syscap SystemCapability.Utils.Lang 632 * @crossplatform 633 * @since 10 634 */ 635 /** 636 * Executes the given callback function once for each real key in the map. 637 * It does not perform functions on deleted keys 638 * 639 * @param { function } callbackFn - callbackFn 640 * callbackFn (required) A function that accepts up to three arguments. 641 * The function to be called for each element. 642 * @param { Object } [thisArg] - thisArg 643 * thisArg (Optional) The value to be used as this value for when callbackFn is called. 644 * If thisArg is omitted, undefined is used as the this value. 645 * @throws { BusinessError } 10200011 - The forEach method cannot be bound. 646 * @throws { BusinessError } 401 - Parameter error. Possible causes: 647 * 1.Mandatory parameters are left unspecified; 648 * 2.Incorrect parameter types. 649 * @syscap SystemCapability.Utils.Lang 650 * @crossplatform 651 * @atomicservice 652 * @since 12 653 */ 654 forEach(callbackFn: (value?: V, key?: K, map?: TreeMap<K, V>) => void, thisArg?: Object): void; 655 /** 656 * Returns a new Iterator object that contains the [key, value] pairs for each element in the Map object in insertion order 657 * 658 * @returns { IterableIterator<[K, V]> } 659 * @throws { BusinessError } 10200011 - The entries method cannot be bound. 660 * @syscap SystemCapability.Utils.Lang 661 * @since 8 662 */ 663 /** 664 * Returns a new Iterator object that contains the [key, value] pairs for each element in the Map object in insertion order 665 * 666 * @returns { IterableIterator<[K, V]> } 667 * @throws { BusinessError } 10200011 - The entries method cannot be bound. 668 * @syscap SystemCapability.Utils.Lang 669 * @crossplatform 670 * @since 10 671 */ 672 /** 673 * Returns a new Iterator object that contains the [key, value] pairs for each element in the Map object in insertion order 674 * 675 * @returns { IterableIterator<[K, V]> } 676 * @throws { BusinessError } 10200011 - The entries method cannot be bound. 677 * @syscap SystemCapability.Utils.Lang 678 * @crossplatform 679 * @atomicservice 680 * @since 12 681 */ 682 entries(): IterableIterator<[K, V]>; 683 /** 684 * returns an ES6 iterator.Each item of the iterator is a Javascript Object 685 * 686 * @returns { IterableIterator<[K, V]> } 687 * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound. 688 * @syscap SystemCapability.Utils.Lang 689 * @since 8 690 */ 691 /** 692 * returns an ES6 iterator.Each item of the iterator is a Javascript Object 693 * 694 * @returns { IterableIterator<[K, V]> } 695 * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound. 696 * @syscap SystemCapability.Utils.Lang 697 * @crossplatform 698 * @since 10 699 */ 700 /** 701 * returns an ES6 iterator.Each item of the iterator is a Javascript Object 702 * 703 * @returns { IterableIterator<[K, V]> } 704 * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound. 705 * @syscap SystemCapability.Utils.Lang 706 * @crossplatform 707 * @atomicservice 708 * @since 12 709 */ 710 [Symbol.iterator](): IterableIterator<[K, V]>; 711} 712 713export default TreeMap; 714