(String name, IFn dispatchFn, Object defaultDispatchVal, IRef hierarchy)
| 32 | static final Var parents = RT.var("clojure.core", "parents"); |
| 33 | |
| 34 | public 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 | |
| 46 | public MultiFn reset(){ |
| 47 | rw.writeLock().lock(); |
nothing calls this directly
no test coverage detected