src/share/classes/java/lang/Float.java

Print this page

        

*** 662,674 **** /** * Returns a hash code for a {@code float} value; compatible with * {@code Float.hashCode()}. * ! * @since 1.8 ! * * @return a hash code value for a {@code float} value. */ public static int hashCode(float value) { return floatToIntBits(value); } --- 662,674 ---- /** * Returns a hash code for a {@code float} value; compatible with * {@code Float.hashCode()}. * ! * @param value the value to hash * @return a hash code value for a {@code float} value. + * @since 1.8 */ public static int hashCode(float value) { return floatToIntBits(value); }