ProAnswers.org

What is a HashSet ?

• A HashSet is an unsorted, unordered Set.

• It uses the hashcode of the object being inserted (so the more efficient your hashcode() implementation the better access performance you’ll get).

• Use this class when you want a collection with no duplicates and you don’t care about order when you iterate through it.