FloatValue extends NumberValueAdapter<Double> { @Override public int hashCode() { long temp = Double.doubleToLongBits( val ); return (int) (temp ^ (temp >>> 32)); } FloatValue( double val ); @Override Type type(); @Override Double asNumber(); @Override long asLong(); @Override int asInt(); @Override double asDouble(); @Override float asFloat(); @Override boolean equals( Object o ); @Override int hashCode(); @Override String toString();  }
@Test void testHashCode() { FloatValue value = new FloatValue( 6.28 ); assertThat( value.hashCode(), notNullValue() ); }