This seems like a pretty weak version of hashCode(). How about using things like HashCodeBuilder to generate the hash code?