Equals and hash method of Descriptors modified to use the primitive fields