|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjfun.jaskell.function.Function1
jfun.jaskell.StrictFunction1
public abstract class StrictFunction1
extend this class to provide a strict function implementation.
Subclassing this class is more efficient than calling addStrictFunction.
A strict function is a function whose arguments are
evaluated before the function body is evaluated.
Zephyr Business Solutions Corp.
Constructor Summary | |
---|---|
StrictFunction1(java.lang.String name)
Create a StrictFunction1 object. |
Method Summary | |
---|---|
java.lang.Object |
call(java.lang.Object o)
Override this method to provide function with one parameter. |
abstract java.lang.Object |
fn(java.lang.Object obj)
Subclass override this method to provide the function implementation. |
java.lang.String |
getName()
get the string representation of this function. |
java.lang.String |
toString()
Returns the string representation. |
Methods inherited from class jfun.jaskell.function.Function1 |
---|
apply, apply, f |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StrictFunction1(java.lang.String name)
name
- the string representation of this function.Method Detail |
---|
public abstract java.lang.Object fn(java.lang.Object obj) throws java.lang.Throwable
obj
- the argument.
java.lang.Throwable
public final java.lang.Object call(java.lang.Object o) throws java.lang.Throwable
Function1
call
in class Function1
o
- the argument.
java.lang.Throwable
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |