A
- The type of the model.T
- The type of data the ModelLoader
provides an
DataFetcher
to convert the model to.public final class RequestManager.GenericModelRequest<A,T> extends Object
ModelLoader
s that requires the user to provide a
specific model.Modifier and Type | Class and Description |
---|---|
class |
RequestManager.GenericModelRequest.GenericTypeRequest
A helper class for building requests with custom
ModelLoader s that
requires the user to specify a specific resource class that will be loaded. |
Modifier and Type | Method and Description |
---|---|
RequestManager.GenericModelRequest.GenericTypeRequest |
from(Class<A> modelClass)
Sets the type of model that will be loaded.
|
RequestManager.GenericModelRequest.GenericTypeRequest |
load(A model)
Sets the specific model that will be loaded.
|
public RequestManager.GenericModelRequest.GenericTypeRequest from(Class<A> modelClass)
modelClass
- the class of model to use.public RequestManager.GenericModelRequest.GenericTypeRequest load(A model)
model
- The model to use.