T- The class of the result object returned in case of success.
public interface Result<T>
|Modifier and Type||Method and Description|
Method called back by the associated object when a failure is detected.
Method called back by the associated object in case of success.
void onFailure(java.lang.Throwable caught)
caught- The exception or error caught.
void onSuccess(T result)
result- The result object.
Copyright © 2005-2020 Restlet.