MCPcopy Create free account
hub / github.com/dhale/jtk / hashCodeOf

Method hashCodeOf

core/src/main/java/edu/mines/jtk/util/Almost.java:309–349  ·  view source on GitHub ↗

Return a hashcode consistent with imprecise floating-point equality. Integers and Longs require exact equality. @param number Number to get hashcode of @param significantDigits Number of significant digits to honor in hashCode @return new hash code.

(final Number number, final int significantDigits)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

testHashCodeMethod · 0.95

Calls 5

zeroMethod · 0.95
equalMethod · 0.95
intValueMethod · 0.45
doubleValueMethod · 0.45
absMethod · 0.45

Tested by 1

testHashCodeMethod · 0.76