public static int hash(int h, boolean v) { return h * 31 + hashCode(v); }
public static int hash(int h, boolean v) { return h * 31 + hashCode(v); }
@SuppressWarnings("deprecation") public void checkHash(double v) { assertThat(Double.valueOf(v).hashCode(), is(Utilities.hashCode(v))); final long long_ = (long) v; assertThat(Long.valueOf(long_).hashCode(), is(Utilities.hashCode(long_))); final float float_ = (float) v; assertThat(Float.valueOf(float_).hashCode(), is(Utilities.hashCode(float_))); final boolean boolean_ = v != 0; assertThat(Boolean.valueOf(boolean_).hashCode(), is(Utilities.hashCode(boolean_))); }
@SuppressWarnings("deprecation") public void checkHash(double v) { assertThat(Double.valueOf(v).hashCode(), is(Utilities.hashCode(v))); final long long_ = (long) v; assertThat(Long.valueOf(long_).hashCode(), is(Utilities.hashCode(long_))); final float float_ = (float) v; assertThat(Float.valueOf(float_).hashCode(), is(Utilities.hashCode(float_))); final boolean boolean_ = v != 0; assertThat(Boolean.valueOf(boolean_).hashCode(), is(Utilities.hashCode(boolean_))); }