SyntaxFix
Write A Post
Hire A Developer
Questions
You should look at the source of the HashSet constructor it calls... it's a special constructor that makes the backing Map a LinkedHashMap instead of just a HashMap.
HashSet
Map
LinkedHashMap
HashMap