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

Method equiv

src/jvm/clojure/lang/APersistentSet.java:78–94  ·  view source on GitHub ↗
(Object obj)

Source from the content-addressed store, hash-verified

76}
77
78public boolean equiv(Object obj){
79 if (!(obj instanceof Set))
80 return false;
81
82 Set m = (Set) obj;
83
84 if (m.size() != size())
85 return false;
86
87 for(Object aM : m)
88 {
89 if(!contains(aM))
90 return false;
91 }
92
93 return true;
94}
95
96public int hashCode(){
97 int hash = this._hash;

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.95
containsMethod · 0.95

Tested by

no test coverage detected