Here you can find the source of hashDouble(double val)
public static int hashDouble(double val)
//package com.java2s; //License from project: Open Source License public class Main { public static int hashDouble(double val) { long bits = Double.doubleToLongBits(val); return (int) (bits ^ bits >>> 32); }//from www . j a va 2s. co m }