| Constructor and Description |
|---|
Closure() |
| Modifier and Type | Method and Description |
|---|---|
abstract Object |
call()
Method including the function call encapsulated by this closure.
|
Thread |
fork()
Fork a new thread using
this as its Runnable. |
void |
run()
Run unwrapTailCall on
this. |
static Object |
unwrapTailCall(Object o)
Unfold tail calls by invoking the call method of the given parameter
and its results until they can no longer be casted to
Closure. |
public abstract Object call()
public static Object unwrapTailCall(Object o)
Closure.o - Closure to be unwrappedcall or the parameter if it is
not an instance of closure.public Thread fork()
this as its Runnable.Copyright © 2014. All Rights Reserved.