|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
R - the type of the result returned by the function.public interface FunctionN<R>
Interface that represents a function of an arbitrary number of parameters.
This interface also serves as a bridge between the functions obtained using
reflection and the typed functions (Function0..4) used in the rest of
the library.
| Method Summary | |
|---|---|
FunctionN<R> |
bind(int p_index,
Object p_param)
Binds, at the specified index, the given parameter of this function of N parameters to return a new function of (N-1) parameters. |
FunctionN<R> |
bind(Object... p_params)
Binds the given M parameters of this function of N parameters to return a new function of (N-M) parameters. |
R |
call()
Calls the function and returns the result. |
R |
call(Object... p_params)
Calls the function and returns the result. |
Function0<R> |
f0()
Returns this function as a function of no parameters. |
Function1<R,Object> |
f1()
Returns this function as a function of 1 parameter. |
Function2<R,Object,Object> |
f2()
Returns this function as a function of 2 parameters. |
Function3<R,Object,Object,Object> |
f3()
Returns this function as a function of 3 parameters. |
Function4<R,Object,Object,Object,Object> |
f4()
Returns this function as a function of 4 parameters. |
| Method Detail |
|---|
R call(Object... p_params)
throws FunctionException
p_params - the parameters to the function.
FunctionException - thrown if an exception occurs during the function
call.
R call()
throws FunctionException
FunctionException - thrown if an exception occurs during the function
call.FunctionN<R> bind(Object... p_params)
p_params - the M parameters to bind to the function.
FunctionN<R> bind(int p_index,
Object p_param)
p_index - the index at which to bind the parameter.p_param - the parameter to bind to the function.
Function0<R> f0()
Function1<R,Object> f1()
Function2<R,Object,Object> f2()
Function3<R,Object,Object,Object> f3()
Function4<R,Object,Object,Object,Object> f4()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||