Basic Java and Objective-C hashCode() usage example