(Object dispatchVal)
| 151 | } |
| 152 | |
| 153 | private IFn getFn(Object dispatchVal) { |
| 154 | IFn targetFn = getMethod(dispatchVal); |
| 155 | if(targetFn == null) |
| 156 | throw new IllegalArgumentException(String.format("No method in multimethod '%s' for dispatch value: %s", |
| 157 | name, dispatchVal)); |
| 158 | return targetFn; |
| 159 | } |
| 160 | |
| 161 | private IFn findAndCacheBestMethod(Object dispatchVal) { |
| 162 | rw.readLock().lock(); |