|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjfun.jaskell.function.Function1
jfun.jaskell.function.FunctionN
Provide function implementation with n parameters. This class implements currying.
Zephyr Business Solutions Corp.
| Method Summary | |
java.lang.Object |
apply(java.lang.Object[] args,
int from,
int len)
Call the function with arguments stored in array args. |
java.lang.Object |
call(java.lang.Object obj)
Override this method to provide function with one parameter. |
boolean |
equals(java.lang.Object o)
|
static Function |
getFunction(int total,
LamdaN lamdan)
adapt a LamdaN object to a Function object by providing currying (partial application). |
int |
hashCode()
|
java.lang.String |
toString()
|
| Methods inherited from class jfun.jaskell.function.Function1 |
apply, f |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
public static Function getFunction(int total,
LamdaN lamdan)
total - the total number of parameters expected.lamdan - the LamdaN object.
public java.lang.Object call(java.lang.Object obj)
throws java.lang.Throwable
Function1
call in class Function1obj - the argument.
java.lang.Throwable
public java.lang.Object apply(java.lang.Object[] args,
int from,
int len)
Function
apply in interface Functionapply in class Function1public int hashCode()
public boolean equals(java.lang.Object o)
public java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||