Returns a hash code consistent with equals: it is computed from the same properties. It is computed once, at construction.