|
||||||||||
| 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
public final class 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 Function1args - the array.from - the starting index of the range.len - the length of the range.
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||