/** * Answers a bound static function. The static function is looked up from the passed in clz and * then is bound to that clz. If the optional args are passed in, they are treated as curry args. */ public <R> JFunction<Class<?>, R> bind( Class<?> clz, Class<R> returnType, String funcName, Object... args) { JFunction<Class<?>, R> f = ref(clz, returnType, funcName); return FuncX.bind(clz, f, args); }
/** * Answers a bound instance function. The instance function is looked up from the passed in * thisObj and then is bound to that thisObj. If the optional args are passed in, they are treated * as curry args. */ public <T, R> JFunction<T, R> bind( T thisObj, Class<R> returnType, String funcName, Object... args) { JFunction<T, R> f = ref(thisObj, returnType, funcName); return FuncX.bind(thisObj, f, args); }