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

Method hasheq

src/jvm/clojure/lang/Util.java:164–174  ·  view source on GitHub ↗
(Object o)

Source from the content-addressed store, hash-verified

162}
163
164public static int hasheq(Object o){
165 if(o == null)
166 return 0;
167 if(o instanceof IHashEq)
168 return dohasheq((IHashEq) o);
169 if(o instanceof Number)
170 return Numbers.hasheq((Number)o);
171 if(o instanceof String)
172 return Murmur3.hashInt(o.hashCode());
173 return o.hashCode();
174}
175
176private static int dohasheq(IHashEq o) {
177 return o.hasheq();

Callers 4

hasheqMethod · 0.95
hashOrderedMethod · 0.95
hashUnorderedMethod · 0.95
hashMethod · 0.95

Calls 4

dohasheqMethod · 0.95
hasheqMethod · 0.95
hashIntMethod · 0.95
hashCodeMethod · 0.45

Tested by

no test coverage detected