To nakonec odpovida i obecnemu pojeti hash code: http://en.wikipedia.org/wiki/Hash_function
"A hash function may map two or more keys to the same hash value. In many applications, it is desirable to minimize the occurrence of such collisions, which means that the hash function must map the keys to the hash values as evenly as possible." > > Javadoc k Object.hashCode() povídá: > > As much as is reasonably practical, the hashCode method defined by class > Object does > return distinct integers for distinct objects. > (This is typically implemented by converting the internal address of the > object into an integer, > but this implementation technique is not required by the JavaTM programming > language.) > > Tj. není to adresa instance na heapu, ale integer vyrobený z adresy instance > na heapu. > Adresa může mít větší bitový rozsah než integer, takže dvě různé adresy > mohou vyprodukovat stejný integer. > > Makub