toHashSet


Description:

public HashSet<T> toHashSet (HashFunc<T> hash_func, EqualFunc<T> equal_func)

Collects stream elements into a HashSet.

Parameters:

hash_func

hash function for set elements.

equal_func

equality function for set elements.

Returns:

a HashSet containing unique stream elements.