Programmings›Algorithm Cookbook›Chapter 5. Hashing and Maps5.10 Composite KeysHash and compare multi-field keys correctly by combining all fields that participate in equality into the hash function.