The following method is used to product the hash code for a field.