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