T - public abstract class CallableAdapter<T> extends Object implements Runnable, Callable<T>
Runnable parameter but
you need to return a result.
Example
CallableAdapter ret = new CallableAdapter() {
public Result call() {
return "cheers";
}
};
Display.getDefault().syncExec(ret);
result = ret.getResultUnchecked();
| Constructor and Description |
|---|
CallableAdapter() |
| Modifier and Type | Method and Description |
|---|---|
Exception |
getException()
Get the exception if one occured when "run" is executed.
|
T |
getResult()
Get the result of the computation after "run" is executed.
|
T |
getResultUnchecked()
Get the result of the computation after "run" is executed.
|
void |
run() |
public Exception getException()
public T getResult() throws Exception
Exceptionpublic T getResultUnchecked()
Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.