Define hashCode in a class with just equals

RegisteredAttributeClass overrode equals(Object) but not hashCode().
I wrote a hashCode() in the standard Effective Java style to match the
existing equals(Object) method definition.