|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The class of the result object returned in case of success.public interface Result<T>
Callback interface for asynchronous tasks.
Method Summary | |
---|---|
void |
onFailure(Throwable caught)
Method called back by the associated object when a failure is detected. |
void |
onSuccess(T result)
Method called back by the associated object in case of success. |
Method Detail |
---|
void onFailure(Throwable caught)
caught
- The exception or error caught.void onSuccess(T result)
result
- The result object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |