Here you can find the source of hashFloat(float value)
public static int hashFloat(float value)
//package com.java2s; //License from project: Open Source License public class Main { /** @return what {@link Float#hashCode()} would return for the same value */ public static int hashFloat(float value) { return Float.floatToIntBits(value); }//from w ww . ja v a2 s . c om }