Constructor and Description |
---|
RunnableWithResult() |
Modifier and Type | Method and Description |
---|---|
R |
getResult()
Gets the result.
|
void |
run()
By default sets the result returned by
runWithResult() . |
protected abstract R |
runWithResult() |
protected void |
setResult(R result) |
public R getResult()
public final void run()
runWithResult()
.run
in interface Runnable
Thread.run()
protected abstract R runWithResult()
protected void setResult(R result)