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

Method clear

src/jvm/clojure/lang/TransactionalHashMap.java:101–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99}
100
101public void clear(){
102 for(int i = 0; i < bins.length; i++)
103 {
104 Ref r = bins[i];
105 IPersistentMap map = (IPersistentMap) r.deref();
106 if(map.count() > 0)
107 {
108 r.set(PersistentHashMap.EMPTY);
109 }
110 }
111}
112
113public Set<Entry<K, V>> entrySet(){
114 final ArrayList<Map.Entry<K, V>> entries = new ArrayList(bins.length);

Callers

nothing calls this directly

Calls 3

derefMethod · 0.95
setMethod · 0.95
countMethod · 0.65

Tested by

no test coverage detected