Java Hash Calculate hashDouble(double val)

Here you can find the source of hashDouble(double val)

Description

hash Double

License

Open Source License

Declaration

public static int hashDouble(double val) 

Method Source Code

//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
}

Related

  1. hashCharArray(int seed, char... charArray)
  2. hashClassName(Class clazz)
  3. hashCombine(int seed, int hash)
  4. hashCombine(int seed, int hash)
  5. hashDisp(long hash)
  6. hashEqules(Object source, Object obj)
  7. hashFloat(float value)
  8. hashFloatBits(long hash, float f)
  9. hashFNV32(int val)