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

Method notifyWatches

src/jvm/clojure/lang/ARef.java:72–84  ·  view source on GitHub ↗
(Object oldval, Object newval)

Source from the content-addressed store, hash-verified

70}
71
72public void notifyWatches(Object oldval, Object newval){
73 IPersistentMap ws = watches;
74 if(ws.count() > 0)
75 {
76 for(ISeq s = ws.seq(); s != null; s = s.next())
77 {
78 Map.Entry e = (Map.Entry) s.first();
79 IFn fn = (IFn) e.getValue();
80 if(fn != null)
81 fn.invoke(e.getKey(), this, oldval, newval);
82 }
83 }
84}
85}

Callers 11

doRunMethod · 0.80
bindRootMethod · 0.80
swapRootMethod · 0.80
commuteRootMethod · 0.80
alterRootMethod · 0.80
runMethod · 0.80
swapMethod · 0.80
swapValsMethod · 0.80
compareAndSetMethod · 0.80
resetMethod · 0.80
resetValsMethod · 0.80

Calls 7

nextMethod · 0.95
firstMethod · 0.95
invokeMethod · 0.95
countMethod · 0.65
seqMethod · 0.65
getValueMethod · 0.45
getKeyMethod · 0.45

Tested by

no test coverage detected