hashCode() Performance caution: using Float objects as map keys is not recommended.
Using floating point values as keys is generally a bad idea due to
difficulty determining exact equality.
Performance caution: using Float objects as map keys is not recommended.
Using floating point values as keys is generally a bad idea due to
difficulty determining exact equality. In addition, there is no efficient
JavaScript equivalent of floatToIntBits. As a result, this
method computes a hash code by truncating the whole number portion of the
float, which may lead to poor performance for certain value sets if Floats
are used as keys in a
java.util.HashMap .