Open this page in the API Guide

HashSet.clear Method

Removes all elements from the hash set.