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
Base class to represent the result of a asynchronous work.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
The result class to represent the error.static final class
The result class to represent the progress.static final class
The result class to represent the success. -
Field Summary
-
Method Summary
-
Field Details
-
data
The data associated with this result.
-
-
Method Details
-
getData
Get the data associated with this result.- Returns:
- The data associated with this result.
-
setData
Set the data associated with this result.- Parameters:
data
- The data to be set.
-