utils

Home > @silence_zhpf/utils > HashSet > fromHashMapValue

HashSet.fromHashMapValue() method

此函数将 HashMap 的值转换为 HashSet。

Signature:

static fromHashMapValue<T, U>(map: HashMap<T, U>): HashSet<U>;

Parameters

Parameter Type Description
map HashMap<T, U> HashMap 类的实例。

Returns:

HashSet<U>

一个新的“HashSet”对象,包含来自输入“HashMap”的所有值。