- All Implemented Interfaces:
Callback<T>
- Enclosing interface:
-
Callback<T>
public abstract static class Callback.Map<T,U>
extends Object
implements Callback<T>
-
-
Constructor Summary
Constructors
-
Method Summary
void
Called when the associated operation completes with an error.
void
Called when the associated operation completes successfully,
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Details
-
map
public abstract U map(T result)
-
onSuccess
public void onSuccess(T result)
Description copied from interface: Callback
Called when the associated operation completes successfully,
- Specified by:
-
onSuccess
in interface Callback<T>
-
onError
Description copied from interface: Callback
Called when the associated operation completes with an error.
- Specified by:
-
onError
in interface Callback<T>
- Parameters:
-
reason
- information about the error.