@Test public void testHashDouble() { assertEquals(new Double(0.0).hashCode(), RandomUtils.hashDouble(0.0)); assertEquals(new Double(1.0).hashCode(), RandomUtils.hashDouble(1.0)); assertEquals(new Double(Double.POSITIVE_INFINITY).hashCode(), RandomUtils.hashDouble(Double.POSITIVE_INFINITY)); assertEquals(new Double(Double.NaN).hashCode(), RandomUtils.hashDouble(Double.NaN)); }
public static int hashDouble(double value) { return Longs.hashCode(Double.doubleToLongBits(value)); }
RandomUtils { public static int hashDouble(double value) { return Longs.hashCode(Double.doubleToLongBits(value)); } }
RandomUtils { public static int hashDouble(double value) { return Longs.hashCode(Double.doubleToLongBits(value)); } private  RandomUtils(); }
RandomUtils { public static int hashDouble(double value) { return Longs.hashCode(Double.doubleToLongBits(value)); } private  RandomUtils(); static void useTestSeed(); static RandomWrapper getRandom(); static Random getRandom(long seed); static int hashDouble(double value); static int hashFloat(float value); static int nextTwinPrime(int n); }
RandomUtils { public static int hashDouble(double value) { return Longs.hashCode(Double.doubleToLongBits(value)); } private  RandomUtils(); static void useTestSeed(); static RandomWrapper getRandom(); static Random getRandom(long seed); static int hashDouble(double value); static int hashFloat(float value); static int nextTwinPrime(int n); static final int MAX_INT_SMALLER_TWIN_PRIME; }