public final class Outcome extends Object implements Serializable
| Constructor and Description |
|---|
Outcome(Object normal,
Throwable abnormal) |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getAbnormal() |
Object |
getNormal() |
boolean |
isFailure() |
boolean |
isSuccess() |
Object |
replay() |
Next |
resumeFrom(Continuable c) |
Next |
resumeFrom(Env e,
Continuation k) |
String |
toString() |
Object |
wrapReplay()
Like
replay() but wraps the throwable into InvocationTargetException. |
public Object wrapReplay() throws InvocationTargetException
replay() but wraps the throwable into InvocationTargetException.InvocationTargetExceptionpublic Object getNormal()
public Throwable getAbnormal()
public boolean isSuccess()
public boolean isFailure()
public Next resumeFrom(Continuable c)
public Next resumeFrom(Env e, Continuation k)
Copyright © 2011–2019. All rights reserved.