|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.4.0) E17493-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.javatools.util.deferred.Thunk<T>
public abstract class Thunk<T>
Allow the client to provide a unit of delayed computation. Based on Hairy's state pattern
| Nested Class Summary | |
|---|---|
static class |
Thunk.ThunkException
A unchecked excpetions that thunks can use to communicate with the outside world. |
| Constructor Summary | |
|---|---|
Thunk()
|
|
| Method Summary | ||
|---|---|---|
protected abstract T |
compute()
|
|
static
|
directReference(T object)
|
|
T |
get()
|
|
protected T |
getValue()
|
|
protected void |
resetState()
Reset the state of the thunk to initialized |
|
protected void |
setValue(T value)
|
|
static
|
synchronizedThunk(Thunk<T> thunk)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Thunk()
| Method Detail |
|---|
public T get()
protected abstract T compute()
protected T getValue()
protected void setValue(T value)
protected void resetState()
public static <T> Thunk<T> synchronizedThunk(Thunk<T> thunk)
thunk - The thunk that should be wraped
public static <T> Thunk<T> directReference(T object)
object - The object this thunk shoud produce
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.4.0) E17493-05 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||