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

Method hashCode

src/jvm/clojure/lang/APersistentSet.java:96–110  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

94}
95
96public int hashCode(){
97 int hash = this._hash;
98 if(hash == 0)
99 {
100 //int hash = count();
101 for(ISeq s = seq(); s != null; s = s.next())
102 {
103 Object e = s.first();
104// hash = Util.hashCombine(hash, Util.hash(e));
105 hash += Util.hash(e);
106 }
107 this._hash = hash;
108 }
109 return hash;
110}
111
112public int hasheq(){
113 int cached = this._hasheq;

Callers

nothing calls this directly

Calls 4

seqMethod · 0.95
nextMethod · 0.95
firstMethod · 0.95
hashMethod · 0.95

Tested by

no test coverage detected