Class DynamicResult<T>
- java.lang.Object
-
- com.pranavpandey.android.dynamic.util.concurrent.DynamicResult<T>
-
- Type Parameters:
T- The type of the data.
- Direct Known Subclasses:
DynamicResult.Error,DynamicResult.Progress,DynamicResult.Success
public abstract class DynamicResult<T> extends java.lang.ObjectBase class to represent the result of a asynchronous work.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDynamicResult.Error<T>The result class to represent the error.static classDynamicResult.Progress<T>The result class to represent the progress.static classDynamicResult.Success<T>The result class to represent the success.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetData()Get the data associated with this result.voidsetData(T data)Set the data associated with this result.
-
-
-
Field Detail
-
data
public T data
The data associated with this result.
-
-