com.bumptech.glide
Class RequestManager.GenericModelRequest<A,T>

java.lang.Object
  extended by com.bumptech.glide.RequestManager.GenericModelRequest<A,T>
Type Parameters:
A - The type of the model.
T - The type of data the ModelLoader provides an DataFetcher to convert the model to.
Enclosing class:
RequestManager

public final class RequestManager.GenericModelRequest<A,T>
extends Object

A helper class for building requests with custom ModelLoaders that requires the user to provide a specific model.


Nested Class Summary
 class RequestManager.GenericModelRequest.GenericTypeRequest
          A helper class for building requests with custom ModelLoaders that requires the user to specify a specific resource class that will be loaded.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

from

public RequestManager.GenericModelRequest.GenericTypeRequest from(Class<A> modelClass)
Sets the type of model that will be loaded.

Parameters:
modelClass - the class of model to use.
Returns:
A request builder

load

public RequestManager.GenericModelRequest.GenericTypeRequest load(A model)
Sets the specific model that will be loaded.

Parameters:
model - The model to use.
Returns:
A request builder.