public class ExecutionResult extends Object
| Constructor and Description | 
|---|
ExecutionResult(Object result)
Initializes an  
ExecutionResult from the given object. | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
equals(Object o)  | 
Throwable | 
getExceptionResult()
Get the execution result in case the result is an exception. 
 | 
Object | 
getResult()
Returns the execution result. 
 | 
int | 
hashCode()  | 
boolean | 
isExceptionResult()
Check if the result of the execution yielded an exception. 
 | 
String | 
toString()  | 
public ExecutionResult(Object result)
ExecutionResult from the given object.result - the result of an executed taskpublic Object getResult()
null. If the execution gave rise to an exception, invoking this method will throw an
 exception. Unchecked exceptions will be thrown directly. Checked exceptions are wrapped by a
 ExecutionException.public Throwable getExceptionResult()
null.null otherwise.public boolean isExceptionResult()
true if execution of the task gave rise to an exception, false otherwise.Copyright © 2010–2018. All rights reserved.