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 Object
Base class to represent the result of a asynchronous work.
  • Field Details

    • data

      public T data
      The data associated with this result.
  • Method Details

    • getData

      @Nullable public T getData()
      Get the data associated with this result.
      Returns:
      The data associated with this result.
    • setData

      public void setData(@Nullable T data)
      Set the data associated with this result.
      Parameters:
      data - The data to be set.