R - type of the expected Result.E - type of the expected Error.public class AsyncTaskResult<R,E>
extends java.lang.Object
AsyncTask.| Modifier and Type | Method and Description |
|---|---|
static <RT,ET> AsyncTaskResult<RT,ET> |
create(RT result,
ET error)
Instantiates an AsyncTaskResult.
|
E |
getError() |
R |
getResult() |
public static <RT,ET> AsyncTaskResult<RT,ET> create(@Nullable RT result, @Nullable ET error)
RT - type of the Result.ET - type of the error.result - The result value.error - The error value.@Nullable public R getResult()
@Nullable public E getError()