MCPcopy Create free account
hub / github.com/questdb/questdb / hashCode

Method hashCode

core/src/main/java/io/questdb/std/DoubleList.java:195–203  ·  view source on GitHub ↗

{@inheritDoc}

()

Source from the content-addressed store, hash-verified

193 * {@inheritDoc}
194 */
195 @Override
196 public int hashCode() {
197 long hashCode = 1;
198 for (int i = 0, n = pos; i < n; i++) {
199 double v = getQuick(i);
200 hashCode = 31 * hashCode + (v == noEntryValue ? 0 : Double.doubleToLongBits(v));
201 }
202 return (int) hashCode;
203 }
204
205 public int indexOf(double o) {
206 for (int i = 0, n = pos; i < n; i++) {

Callers 1

testHashCodeEqualsMethod · 0.95

Calls 1

getQuickMethod · 0.95

Tested by 1

testHashCodeEqualsMethod · 0.76