Home > @silence_zhpf/utils > HashSet > isSuperset
此函数检查此HashSet
是否是另一个HashSet
的超集。
Signature:
isSuperset(other: HashSet<T>): boolean;
Parameter | Type | Description |
---|---|---|
other | HashSet<T> | other 是一个 T 类型的 HashSet,表示要检查的集合是否是当前 HashSet 的子集。 |
Returns:
boolean
isSuperset
函数返回一个布尔值。如果调用该函数的 HashSet
是作为参数传递的 other
HashSet
的超集,则返回 true
,否则返回 false
。