161847f8eSopenharmony_ci/*
261847f8eSopenharmony_ci * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
361847f8eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
461847f8eSopenharmony_ci * you may not use this file except in compliance with the License.
561847f8eSopenharmony_ci * You may obtain a copy of the License at
661847f8eSopenharmony_ci *
761847f8eSopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
861847f8eSopenharmony_ci *
961847f8eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1061847f8eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1161847f8eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1261847f8eSopenharmony_ci * See the License for the specific language governing permissions and
1361847f8eSopenharmony_ci * limitations under the License.
1461847f8eSopenharmony_ci */
1561847f8eSopenharmony_ci
1661847f8eSopenharmony_ci/**
1761847f8eSopenharmony_ci * @file
1861847f8eSopenharmony_ci * @kit ArkTS
1961847f8eSopenharmony_ci */
2061847f8eSopenharmony_ci
2161847f8eSopenharmony_ci/**
2261847f8eSopenharmony_ci * HashSet is implemented based on HashMap. In HashSet, only the value object is processed.
2361847f8eSopenharmony_ci *
2461847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang
2561847f8eSopenharmony_ci * @since 8
2661847f8eSopenharmony_ci */
2761847f8eSopenharmony_ci/**
2861847f8eSopenharmony_ci * HashSet is implemented based on HashMap. In HashSet, only the value object is processed.
2961847f8eSopenharmony_ci *
3061847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang
3161847f8eSopenharmony_ci * @crossplatform
3261847f8eSopenharmony_ci * @since 10
3361847f8eSopenharmony_ci */
3461847f8eSopenharmony_ci/**
3561847f8eSopenharmony_ci * HashSet is implemented based on HashMap. In HashSet, only the value object is processed.
3661847f8eSopenharmony_ci *
3761847f8eSopenharmony_ci * @syscap SystemCapability.Utils.Lang
3861847f8eSopenharmony_ci * @crossplatform
3961847f8eSopenharmony_ci * @atomicservice
4061847f8eSopenharmony_ci * @since 12
4161847f8eSopenharmony_ci */
4261847f8eSopenharmony_cideclare class HashSet<T> {
4361847f8eSopenharmony_ci  /**
4461847f8eSopenharmony_ci   * A constructor used to create a HashSet object.
4561847f8eSopenharmony_ci   *
4661847f8eSopenharmony_ci   * @throws { BusinessError } 10200012 - The HashSet's constructor cannot be directly invoked.
4761847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
4861847f8eSopenharmony_ci   * @since 8
4961847f8eSopenharmony_ci   */
5061847f8eSopenharmony_ci  /**
5161847f8eSopenharmony_ci   * A constructor used to create a HashSet object.
5261847f8eSopenharmony_ci   *
5361847f8eSopenharmony_ci   * @throws { BusinessError } 10200012 - The HashSet's constructor cannot be directly invoked.
5461847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
5561847f8eSopenharmony_ci   * @crossplatform
5661847f8eSopenharmony_ci   * @since 10
5761847f8eSopenharmony_ci   */
5861847f8eSopenharmony_ci  /**
5961847f8eSopenharmony_ci   * A constructor used to create a HashSet object.
6061847f8eSopenharmony_ci   *
6161847f8eSopenharmony_ci   * @throws { BusinessError } 10200012 - The HashSet's constructor cannot be directly invoked.
6261847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
6361847f8eSopenharmony_ci   * @crossplatform
6461847f8eSopenharmony_ci   * @atomicservice
6561847f8eSopenharmony_ci   * @since 12
6661847f8eSopenharmony_ci   */
6761847f8eSopenharmony_ci  constructor();
6861847f8eSopenharmony_ci  /**
6961847f8eSopenharmony_ci   * Gets the element number of the hashset.
7061847f8eSopenharmony_ci   *
7161847f8eSopenharmony_ci   * @type { number }
7261847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
7361847f8eSopenharmony_ci   * @since 8
7461847f8eSopenharmony_ci   */
7561847f8eSopenharmony_ci  /**
7661847f8eSopenharmony_ci   * Gets the element number of the hashset.
7761847f8eSopenharmony_ci   *
7861847f8eSopenharmony_ci   * @type { number }
7961847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
8061847f8eSopenharmony_ci   * @crossplatform
8161847f8eSopenharmony_ci   * @since 10
8261847f8eSopenharmony_ci   */
8361847f8eSopenharmony_ci  /**
8461847f8eSopenharmony_ci   * Gets the element number of the hashset.
8561847f8eSopenharmony_ci   *
8661847f8eSopenharmony_ci   * @type { number }
8761847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
8861847f8eSopenharmony_ci   * @crossplatform
8961847f8eSopenharmony_ci   * @atomicservice
9061847f8eSopenharmony_ci   * @since 12
9161847f8eSopenharmony_ci   */
9261847f8eSopenharmony_ci  length: number;
9361847f8eSopenharmony_ci  /**
9461847f8eSopenharmony_ci   * Returns whether the Set object contains elements
9561847f8eSopenharmony_ci   *
9661847f8eSopenharmony_ci   * @returns { boolean } the boolean type
9761847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The isEmpty method cannot be bound.
9861847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
9961847f8eSopenharmony_ci   * @since 8
10061847f8eSopenharmony_ci   */
10161847f8eSopenharmony_ci  /**
10261847f8eSopenharmony_ci   * Returns whether the Set object contains elements
10361847f8eSopenharmony_ci   *
10461847f8eSopenharmony_ci   * @returns { boolean } the boolean type
10561847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The isEmpty method cannot be bound.
10661847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
10761847f8eSopenharmony_ci   * @crossplatform
10861847f8eSopenharmony_ci   * @since 10
10961847f8eSopenharmony_ci   */
11061847f8eSopenharmony_ci  /**
11161847f8eSopenharmony_ci   * Returns whether the Set object contains elements
11261847f8eSopenharmony_ci   *
11361847f8eSopenharmony_ci   * @returns { boolean } the boolean type
11461847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The isEmpty method cannot be bound.
11561847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
11661847f8eSopenharmony_ci   * @crossplatform
11761847f8eSopenharmony_ci   * @atomicservice
11861847f8eSopenharmony_ci   * @since 12
11961847f8eSopenharmony_ci   */
12061847f8eSopenharmony_ci  isEmpty(): boolean;
12161847f8eSopenharmony_ci  /**
12261847f8eSopenharmony_ci   * Returns whether the Set object contain s the elements
12361847f8eSopenharmony_ci   *
12461847f8eSopenharmony_ci   * @param { T } value - value value need to determine whether to include the element
12561847f8eSopenharmony_ci   * @returns { boolean } the boolean type
12661847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The has method cannot be bound.
12761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
12861847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
12961847f8eSopenharmony_ci   * 2.Incorrect parameter types;
13061847f8eSopenharmony_ci   * 3.Parameter verification failed.
13161847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
13261847f8eSopenharmony_ci   * @since 8
13361847f8eSopenharmony_ci   */
13461847f8eSopenharmony_ci  /**
13561847f8eSopenharmony_ci   * Returns whether the Set object contain s the elements
13661847f8eSopenharmony_ci   *
13761847f8eSopenharmony_ci   * @param { T } value - value value need to determine whether to include the element
13861847f8eSopenharmony_ci   * @returns { boolean } the boolean type
13961847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The has method cannot be bound.
14061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
14161847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
14261847f8eSopenharmony_ci   * 2.Incorrect parameter types;
14361847f8eSopenharmony_ci   * 3.Parameter verification failed.
14461847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
14561847f8eSopenharmony_ci   * @crossplatform
14661847f8eSopenharmony_ci   * @since 10
14761847f8eSopenharmony_ci   */
14861847f8eSopenharmony_ci  /**
14961847f8eSopenharmony_ci   * Returns whether the Set object contain s the elements
15061847f8eSopenharmony_ci   *
15161847f8eSopenharmony_ci   * @param { T } value - value value need to determine whether to include the element
15261847f8eSopenharmony_ci   * @returns { boolean } the boolean type
15361847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The has method cannot be bound.
15461847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
15561847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
15661847f8eSopenharmony_ci   * 2.Incorrect parameter types;
15761847f8eSopenharmony_ci   * 3.Parameter verification failed.
15861847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
15961847f8eSopenharmony_ci   * @crossplatform
16061847f8eSopenharmony_ci   * @atomicservice
16161847f8eSopenharmony_ci   * @since 12
16261847f8eSopenharmony_ci   */
16361847f8eSopenharmony_ci  has(value: T): boolean;
16461847f8eSopenharmony_ci  /**
16561847f8eSopenharmony_ci   * If the set does not contain the element, the specified element is added
16661847f8eSopenharmony_ci   *
16761847f8eSopenharmony_ci   * @param { T } value - value value Added element
16861847f8eSopenharmony_ci   * @returns { boolean } the boolean type(Is there contain this element)
16961847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The add method cannot be bound.
17061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
17161847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
17261847f8eSopenharmony_ci   * 2.Incorrect parameter types;
17361847f8eSopenharmony_ci   * 3.Parameter verification failed.
17461847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
17561847f8eSopenharmony_ci   * @since 8
17661847f8eSopenharmony_ci   */
17761847f8eSopenharmony_ci  /**
17861847f8eSopenharmony_ci   * If the set does not contain the element, the specified element is added
17961847f8eSopenharmony_ci   *
18061847f8eSopenharmony_ci   * @param { T } value - value value Added element
18161847f8eSopenharmony_ci   * @returns { boolean } the boolean type(Is there contain this element)
18261847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The add method cannot be bound.
18361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
18461847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
18561847f8eSopenharmony_ci   * 2.Incorrect parameter types;
18661847f8eSopenharmony_ci   * 3.Parameter verification failed.
18761847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
18861847f8eSopenharmony_ci   * @crossplatform
18961847f8eSopenharmony_ci   * @since 10
19061847f8eSopenharmony_ci   */
19161847f8eSopenharmony_ci  /**
19261847f8eSopenharmony_ci   * If the set does not contain the element, the specified element is added
19361847f8eSopenharmony_ci   *
19461847f8eSopenharmony_ci   * @param { T } value - value value Added element
19561847f8eSopenharmony_ci   * @returns { boolean } the boolean type(Is there contain this element)
19661847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The add method cannot be bound.
19761847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
19861847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
19961847f8eSopenharmony_ci   * 2.Incorrect parameter types;
20061847f8eSopenharmony_ci   * 3.Parameter verification failed.
20161847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
20261847f8eSopenharmony_ci   * @crossplatform
20361847f8eSopenharmony_ci   * @atomicservice
20461847f8eSopenharmony_ci   * @since 12
20561847f8eSopenharmony_ci   */
20661847f8eSopenharmony_ci  add(value: T): boolean;
20761847f8eSopenharmony_ci  /**
20861847f8eSopenharmony_ci   * Remove a specified element from a Set object
20961847f8eSopenharmony_ci   *
21061847f8eSopenharmony_ci   * @param { T } value - value value Target to be deleted
21161847f8eSopenharmony_ci   * @returns { boolean } the boolean type(Is there contain this element)
21261847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The remove method cannot be bound.
21361847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
21461847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
21561847f8eSopenharmony_ci   * 2.Incorrect parameter types;
21661847f8eSopenharmony_ci   * 3.Parameter verification failed.
21761847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
21861847f8eSopenharmony_ci   * @since 8
21961847f8eSopenharmony_ci   */
22061847f8eSopenharmony_ci  /**
22161847f8eSopenharmony_ci   * Remove a specified element from a Set object
22261847f8eSopenharmony_ci   *
22361847f8eSopenharmony_ci   * @param { T } value - value value Target to be deleted
22461847f8eSopenharmony_ci   * @returns { boolean } the boolean type(Is there contain this element)
22561847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The remove method cannot be bound.
22661847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
22761847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
22861847f8eSopenharmony_ci   * 2.Incorrect parameter types;
22961847f8eSopenharmony_ci   * 3.Parameter verification failed.
23061847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
23161847f8eSopenharmony_ci   * @crossplatform
23261847f8eSopenharmony_ci   * @since 10
23361847f8eSopenharmony_ci   */
23461847f8eSopenharmony_ci  /**
23561847f8eSopenharmony_ci   * Remove a specified element from a Set object
23661847f8eSopenharmony_ci   *
23761847f8eSopenharmony_ci   * @param { T } value - value value Target to be deleted
23861847f8eSopenharmony_ci   * @returns { boolean } the boolean type(Is there contain this element)
23961847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The remove method cannot be bound.
24061847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
24161847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
24261847f8eSopenharmony_ci   * 2.Incorrect parameter types;
24361847f8eSopenharmony_ci   * 3.Parameter verification failed.
24461847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
24561847f8eSopenharmony_ci   * @crossplatform
24661847f8eSopenharmony_ci   * @atomicservice
24761847f8eSopenharmony_ci   * @since 12
24861847f8eSopenharmony_ci   */
24961847f8eSopenharmony_ci  remove(value: T): boolean;
25061847f8eSopenharmony_ci  /**
25161847f8eSopenharmony_ci   * Clears all element groups in a set
25261847f8eSopenharmony_ci   *
25361847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The clear method cannot be bound.
25461847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
25561847f8eSopenharmony_ci   * @since 8
25661847f8eSopenharmony_ci   */
25761847f8eSopenharmony_ci  /**
25861847f8eSopenharmony_ci   * Clears all element groups in a set
25961847f8eSopenharmony_ci   *
26061847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The clear method cannot be bound.
26161847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
26261847f8eSopenharmony_ci   * @crossplatform
26361847f8eSopenharmony_ci   * @since 10
26461847f8eSopenharmony_ci   */
26561847f8eSopenharmony_ci  /**
26661847f8eSopenharmony_ci   * Clears all element groups in a set
26761847f8eSopenharmony_ci   *
26861847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The clear method cannot be bound.
26961847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
27061847f8eSopenharmony_ci   * @crossplatform
27161847f8eSopenharmony_ci   * @atomicservice
27261847f8eSopenharmony_ci   * @since 12
27361847f8eSopenharmony_ci   */
27461847f8eSopenharmony_ci  clear(): void;
27561847f8eSopenharmony_ci  /**
27661847f8eSopenharmony_ci   * Executes a provided function once for each value in the Set object.
27761847f8eSopenharmony_ci   *
27861847f8eSopenharmony_ci   * @param { function } callbackFn - callbackFn
27961847f8eSopenharmony_ci   * callbackFn (required) A function that accepts up to three arguments.
28061847f8eSopenharmony_ci   * The function to be called for each element.
28161847f8eSopenharmony_ci   * @param { Object } [thisArg] - thisArg
28261847f8eSopenharmony_ci   * thisArg (Optional) The value to be used as this value for when callbackFn is called.
28361847f8eSopenharmony_ci   * If thisArg is omitted, undefined is used as the this value.
28461847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The forEach method cannot be bound.
28561847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
28661847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
28761847f8eSopenharmony_ci   * 2.Incorrect parameter types.
28861847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
28961847f8eSopenharmony_ci   * @since 8
29061847f8eSopenharmony_ci   */
29161847f8eSopenharmony_ci  /**
29261847f8eSopenharmony_ci   * Executes a provided function once for each value in the Set object.
29361847f8eSopenharmony_ci   *
29461847f8eSopenharmony_ci   * @param { function } callbackFn - callbackFn
29561847f8eSopenharmony_ci   * callbackFn (required) A function that accepts up to three arguments.
29661847f8eSopenharmony_ci   * The function to be called for each element.
29761847f8eSopenharmony_ci   * @param { Object } [thisArg] - thisArg
29861847f8eSopenharmony_ci   * thisArg (Optional) The value to be used as this value for when callbackFn is called.
29961847f8eSopenharmony_ci   * If thisArg is omitted, undefined is used as the this value.
30061847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The forEach method cannot be bound.
30161847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
30261847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
30361847f8eSopenharmony_ci   * 2.Incorrect parameter types.
30461847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
30561847f8eSopenharmony_ci   * @crossplatform
30661847f8eSopenharmony_ci   * @since 10
30761847f8eSopenharmony_ci   */
30861847f8eSopenharmony_ci  /**
30961847f8eSopenharmony_ci   * Executes a provided function once for each value in the Set object.
31061847f8eSopenharmony_ci   *
31161847f8eSopenharmony_ci   * @param { function } callbackFn - callbackFn
31261847f8eSopenharmony_ci   * callbackFn (required) A function that accepts up to three arguments.
31361847f8eSopenharmony_ci   * The function to be called for each element.
31461847f8eSopenharmony_ci   * @param { Object } [thisArg] - thisArg
31561847f8eSopenharmony_ci   * thisArg (Optional) The value to be used as this value for when callbackFn is called.
31661847f8eSopenharmony_ci   * If thisArg is omitted, undefined is used as the this value.
31761847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The forEach method cannot be bound.
31861847f8eSopenharmony_ci   * @throws { BusinessError } 401 - Parameter error. Possible causes:
31961847f8eSopenharmony_ci   * 1.Mandatory parameters are left unspecified;
32061847f8eSopenharmony_ci   * 2.Incorrect parameter types.
32161847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
32261847f8eSopenharmony_ci   * @crossplatform
32361847f8eSopenharmony_ci   * @atomicservice
32461847f8eSopenharmony_ci   * @since 12
32561847f8eSopenharmony_ci   */
32661847f8eSopenharmony_ci  forEach(callbackFn: (value?: T, key?: T, set?: HashSet<T>) => void, thisArg?: Object): void;
32761847f8eSopenharmony_ci  /**
32861847f8eSopenharmony_ci   * Returns a new Iterator object that contains the values contained in this set
32961847f8eSopenharmony_ci   *
33061847f8eSopenharmony_ci   * @returns { IterableIterator<T> }
33161847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The values method cannot be bound.
33261847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
33361847f8eSopenharmony_ci   * @since 8
33461847f8eSopenharmony_ci   */
33561847f8eSopenharmony_ci  /**
33661847f8eSopenharmony_ci   * Returns a new Iterator object that contains the values contained in this set
33761847f8eSopenharmony_ci   *
33861847f8eSopenharmony_ci   * @returns { IterableIterator<T> }
33961847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The values method cannot be bound.
34061847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
34161847f8eSopenharmony_ci   * @crossplatform
34261847f8eSopenharmony_ci   * @since 10
34361847f8eSopenharmony_ci   */
34461847f8eSopenharmony_ci  /**
34561847f8eSopenharmony_ci   * Returns a new Iterator object that contains the values contained in this set
34661847f8eSopenharmony_ci   *
34761847f8eSopenharmony_ci   * @returns { IterableIterator<T> }
34861847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The values method cannot be bound.
34961847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
35061847f8eSopenharmony_ci   * @crossplatform
35161847f8eSopenharmony_ci   * @atomicservice
35261847f8eSopenharmony_ci   * @since 12
35361847f8eSopenharmony_ci   */
35461847f8eSopenharmony_ci  values(): IterableIterator<T>;
35561847f8eSopenharmony_ci  /**
35661847f8eSopenharmony_ci   * Returns a new Iterator object that contains the [key, value] pairs for each element in the Set object in insertion order
35761847f8eSopenharmony_ci   *
35861847f8eSopenharmony_ci   * @returns { IterableIterator<[T, T]> }
35961847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The entries method cannot be bound.
36061847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
36161847f8eSopenharmony_ci   * @since 8
36261847f8eSopenharmony_ci   */
36361847f8eSopenharmony_ci  /**
36461847f8eSopenharmony_ci   * Returns a new Iterator object that contains the [key, value] pairs for each element in the Set object in insertion order
36561847f8eSopenharmony_ci   *
36661847f8eSopenharmony_ci   * @returns { IterableIterator<[T, T]> }
36761847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The entries method cannot be bound.
36861847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
36961847f8eSopenharmony_ci   * @crossplatform
37061847f8eSopenharmony_ci   * @since 10
37161847f8eSopenharmony_ci   */
37261847f8eSopenharmony_ci  /**
37361847f8eSopenharmony_ci   * Returns a new Iterator object that contains the [key, value] pairs for each element in the Set object in insertion order
37461847f8eSopenharmony_ci   *
37561847f8eSopenharmony_ci   * @returns { IterableIterator<[T, T]> }
37661847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The entries method cannot be bound.
37761847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
37861847f8eSopenharmony_ci   * @crossplatform
37961847f8eSopenharmony_ci   * @atomicservice
38061847f8eSopenharmony_ci   * @since 12
38161847f8eSopenharmony_ci   */
38261847f8eSopenharmony_ci  entries(): IterableIterator<[T, T]>;
38361847f8eSopenharmony_ci  /**
38461847f8eSopenharmony_ci   * returns an iterator.Each item of the iterator is a Javascript Object
38561847f8eSopenharmony_ci   *
38661847f8eSopenharmony_ci   * @returns { IterableIterator<T> }
38761847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
38861847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
38961847f8eSopenharmony_ci   * @since 8
39061847f8eSopenharmony_ci   */
39161847f8eSopenharmony_ci  /**
39261847f8eSopenharmony_ci   * returns an iterator.Each item of the iterator is a Javascript Object
39361847f8eSopenharmony_ci   *
39461847f8eSopenharmony_ci   * @returns { IterableIterator<T> }
39561847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
39661847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
39761847f8eSopenharmony_ci   * @crossplatform
39861847f8eSopenharmony_ci   * @since 10
39961847f8eSopenharmony_ci   */
40061847f8eSopenharmony_ci  /**
40161847f8eSopenharmony_ci   * returns an iterator.Each item of the iterator is a Javascript Object
40261847f8eSopenharmony_ci   *
40361847f8eSopenharmony_ci   * @returns { IterableIterator<T> }
40461847f8eSopenharmony_ci   * @throws { BusinessError } 10200011 - The Symbol.iterator method cannot be bound.
40561847f8eSopenharmony_ci   * @syscap SystemCapability.Utils.Lang
40661847f8eSopenharmony_ci   * @crossplatform
40761847f8eSopenharmony_ci   * @atomicservice
40861847f8eSopenharmony_ci   * @since 12
40961847f8eSopenharmony_ci   */
41061847f8eSopenharmony_ci  [Symbol.iterator](): IterableIterator<T>;
41161847f8eSopenharmony_ci}
41261847f8eSopenharmony_ci
41361847f8eSopenharmony_ciexport default HashSet;
414