Set of methods which allow easy implementation of hashCode.
Example:
override def hashCode: Int = {
var result = HashCode.SEED
//collect the contributions of various fields
result = HashCode.hash(result, fPrimitive)
result = HashCode.hash(result, fObject)
result = HashCode.hash(result, fArray)
result
}
Set of methods which allow easy implementation of
hashCode
.Example: