java.lang.Object
io.ably.lib.types.Callback.Map<T,U>
- All Implemented Interfaces:
Callback<T>
- Enclosing interface:
- Callback<T>
public abstract static class Callback.Map<T,U>
extends java.lang.Object
implements Callback<T>
-
-
Constructor Summary
Constructors
| Constructor |
Description |
Map(Callback<U> callback) |
|
-
Method Summary
| Modifier and Type |
Method |
Description |
abstract U |
map(T result) |
|
void |
onError(ErrorInfo reason) |
Called when the associated operation completes with an error.
|
void |
onSuccess(T result) |
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
-
public abstract U map(
T result)
-
public void onSuccess(
T result)
Description copied from interface: Callback
Called when the associated operation completes successfully,
- Specified by:
onSuccess in interface Callback<T>
-
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.