long bits = Double.doubleToLongBits(key);
int hashCode = (int)(bits ^ (bits >> 32));
// Version 4.0
