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

Method MultiFn

src/jvm/clojure/lang/MultiFn.java:34–44  ·  view source on GitHub ↗
(String name, IFn dispatchFn, Object defaultDispatchVal, IRef hierarchy)

Source from the content-addressed store, hash-verified

32static final Var parents = RT.var("clojure.core", "parents");
33
34public MultiFn(String name, IFn dispatchFn, Object defaultDispatchVal, IRef hierarchy) {
35 this.rw = new ReentrantReadWriteLock();
36 this.name = name;
37 this.dispatchFn = dispatchFn;
38 this.defaultDispatchVal = defaultDispatchVal;
39 this.methodTable = PersistentHashMap.EMPTY;
40 this.methodCache = getMethodTable();
41 this.preferTable = PersistentHashMap.EMPTY;
42 this.hierarchy = hierarchy;
43 cachedHierarchy = null;
44}
45
46public MultiFn reset(){
47 rw.writeLock().lock();

Callers

nothing calls this directly

Calls 1

getMethodTableMethod · 0.95

Tested by

no test coverage detected