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

Method equals

src/jvm/clojure/lang/PersistentQueue.java:60–72  ·  view source on GitHub ↗
(Object obj)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected