Java Hash Code Calculate hashCodeEps(double value)

Here you can find the source of hashCodeEps(double value)

Description

hash Code Eps

License

Open Source License

Declaration

public static int hashCodeEps(double value) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    private static final double EPSILON = 0.0001;

    public static int hashCodeEps(double value) {
        return Long.valueOf(Math.round(value / EPSILON)).hashCode();
    }//from   w ww. j av a 2s  . co m
}

Related

  1. hashCode(Object... objs)
  2. hashCode(Object... toHash)
  3. hashCode(Object[] array)
  4. hashCode(Object[] thisFields)
  5. hashcode_old(final int[] array)
  6. hashCodeForDoubleArray(double[] a)
  7. hashCodeLowerCase(Object... toHash)
  8. hashCodeNullSafe(final Object o)
  9. hashCodeOf(Object o)