下面是示例生成的hashCodeIntelliJ IDEA如何生成哈希碼?
@Override
public int hashCode() {
int result;
long temp;
temp = x != +0.0d ? Double.doubleToLongBits(x) : 0L;
result = (int) (temp^(temp >>> 32));
temp = y != +0.0d ? Double.doubleToLongBits(y) : 0L;
result = 31 * result + (int) (temp^(temp >>> 32));
return result;
}
不知什麼有31 *和32 >>>