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