Gets an object hash code which can be used to optimize storing and searching.
Returns an object hash code.