Package com.bumptech.glide.provider
Class LoadPathCache
- java.lang.Object
-
- com.bumptech.glide.provider.LoadPathCache
-
public class LoadPathCache extends java.lang.ObjectMaintains a cache of data, resource, and transcode classes to availableLoadPaths capable of decoding with the requested types.
-
-
Constructor Summary
Constructors Constructor Description LoadPathCache()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <Data,TResource,Transcode>
LoadPath<Data,TResource,Transcode>get(java.lang.Class<Data> dataClass, java.lang.Class<TResource> resourceClass, java.lang.Class<Transcode> transcodeClass)May returnNO_PATHS_SIGNALto indicate that we've previously found that there are 0 available load paths for the requested types.booleanisEmptyLoadPath(LoadPath<?,?,?> path)Returns true if the givenLoadPathis the signal object returned fromget(Class, Class, Class)that indicates that we've previously found that there are no available paths to load the requested resources andfalseotherwise.voidput(java.lang.Class<?> dataClass, java.lang.Class<?> resourceClass, java.lang.Class<?> transcodeClass, LoadPath<?,?,?> loadPath)
-
-
-
Method Detail
-
isEmptyLoadPath
public boolean isEmptyLoadPath(@Nullable LoadPath<?,?,?> path)Returns true if the givenLoadPathis the signal object returned fromget(Class, Class, Class)that indicates that we've previously found that there are no available paths to load the requested resources andfalseotherwise.
-
get
@Nullable public <Data,TResource,Transcode> LoadPath<Data,TResource,Transcode> get(java.lang.Class<Data> dataClass, java.lang.Class<TResource> resourceClass, java.lang.Class<Transcode> transcodeClass)
May returnNO_PATHS_SIGNALto indicate that we've previously found that there are 0 available load paths for the requested types. Callers must check usingisEmptyLoadPath(LoadPath)before using any load path returned by this method.
-
put
public void put(java.lang.Class<?> dataClass, java.lang.Class<?> resourceClass, java.lang.Class<?> transcodeClass, @Nullable LoadPath<?,?,?> loadPath)
-
-