I have just read and understood how hashing works with HashMap: how it uses a hashtable, makes hashcodes with a hash function etc.
My question is: If the same principles apply to HashSet? Well obviously it cannot compute a hashcode from HashSet's key, because it doesn't have one. But does it compute the hashcode from the value of the HashSet then?