public class FailedResult<T> extends Object implements AsyncResult<T>
| Constructor and Description |
|---|
FailedResult(Object cause) |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
cause() |
boolean |
failed() |
T |
result() |
boolean |
succeeded() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmap, map, mapEmpty, otherwise, otherwise, otherwiseEmptypublic FailedResult(Object cause)
public T result()
result in interface AsyncResult<T>public Throwable cause()
cause in interface AsyncResult<T>public boolean succeeded()
succeeded in interface AsyncResult<T>public boolean failed()
failed in interface AsyncResult<T>Copyright © 2019 Eclipse. All rights reserved.