I\'ve read that Scala\'a case class construct automatically generates a fitting equals and hashCode implementation. What does exactly
case class
equals
hashCode
Please be aware that the previous answers on this question are a bit outdated on the hashCode part.
As of scala 2.9 hashCode for case classes uses MurmurHash: link.
MurmurHash
MurmurHash produces good avalanche effect, good distribution and is CPU friendly.