I'd rather convert the primitive types in the class to Objects and use their respective hash code implementations. wdyt?