MCPcopy Index your code
hub / github.com/questdb/questdb / hashCode

Method hashCode

core/src/main/java/io/questdb/std/ByteList.java:121–129  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

119 }
120
121 @Override
122 public int hashCode() {
123 int hashCode = 1;
124 for (int i = 0, n = pos; i < n; i++) {
125 int v = getQuick(i);
126 hashCode = 31 * hashCode + (v == NO_ENTRY_VALUE ? 0 : v);
127 }
128 return hashCode;
129 }
130
131 public int indexOf(byte v, int low, int high) {
132 assert high <= pos;

Callers

nothing calls this directly

Calls 1

getQuickMethod · 0.95

Tested by

no test coverage detected