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