MCPcopy Create free account
hub / github.com/BirolLab/RNA-Bloom / getIndex

Method getIndex

src/rnabloom/bloom/SimpleBloomFilter.java:42–45  ·  view source on GitHub ↗
(String key)

Source from the content-addressed store, hash-verified

40 }
41
42 protected long getIndex(String key) {
43 long hashCode = (long) key.hashCode();
44 return (hashCode + (long) Integer.MAX_VALUE + 1L) % size;
45 }
46
47 @Override
48 public void add(String key) {

Callers 3

addMethod · 0.95
lookupMethod · 0.95
lookupAndAddMethod · 0.95

Calls 1

hashCodeMethod · 0.80

Tested by

no test coverage detected