T - The class of the result object returned in case of success.public interface Result<T>
| Modifier and Type | Method and Description |
|---|---|
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.
|
void onFailure(Throwable caught)
caught - The exception or error caught.void onSuccess(T result)
result - The result object.Copyright © 2005–2025. All rights reserved.