MCPcopy Create free account
hub / github.com/actiontech/dble / hash

Method hash

src/main/java/com/actiontech/dble/util/StringUtil.java:51–63  ·  view source on GitHub ↗

String hash:s[0] 31^(n-1) + s[1] 31^(n-2) + ... + s[n-1] h = 31 h + s.charAt(i); => h = (h << 5) - h + s.charAt(i); @param start hash for s.substring(start, end) @param end hash for s.substring(start, end)

(String s, int start, int end)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

mainMethod · 0.95
calculateMethod · 0.95
calculateMethod · 0.95
partitionMethod · 0.95
hashCodeMethod · 0.45
hashCodeMethod · 0.45
hashCodeMethod · 0.45
hashCodeMethod · 0.45
hashCodeMethod · 0.45
hashCodeMethod · 0.45
hashCodeMethod · 0.45
hashCodeMethod · 0.45

Calls 1

lengthMethod · 0.45

Tested by 1

mainMethod · 0.76