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

Method equals

src/jvm/clojure/lang/ASeq.java:58–70  ·  view source on GitHub ↗
(Object obj)

Source from the content-addressed store, hash-verified

56}
57
58public boolean equals(Object obj){
59 if(this == obj) return true;
60 if(!(obj instanceof Sequential || obj instanceof List))
61 return false;
62 ISeq ms = RT.seq(obj);
63 for(ISeq s = seq(); s != null; s = s.next(), ms = ms.next())
64 {
65 if(ms == null || !Util.equals(s.first(), ms.first()))
66 return false;
67 }
68 return ms == null;
69
70}
71
72public int hashCode(){
73 if(_hash == 0)

Callers 15

invokeMethod · 0.45
mainMethod · 0.45
removeMethod · 0.45
replaceMethod · 0.45
resolveSymbolMethod · 0.45
parseMethod · 0.45
maybeSpecialTagMethod · 0.45
QualifiedMethodExprMethod · 0.45
methodOverloadsMethod · 0.45
tagsToClassesMethod · 0.45
signatureMatchesMethod · 0.45
methodDescriptionMethod · 0.45

Calls 5

seqMethod · 0.95
seqMethod · 0.95
nextMethod · 0.95
equalsMethod · 0.95
firstMethod · 0.95

Tested by

no test coverage detected