Constructor and Description |
---|
LoadPathCache() |
Modifier and Type | Method and Description |
---|---|
<Data,TResource,Transcode> |
get(Class<Data> dataClass,
Class<TResource> resourceClass,
Class<Transcode> transcodeClass)
May return
NO_PATHS_SIGNAL to indicate that we've previously found that there are 0
available load paths for the requested types. |
boolean |
isEmptyLoadPath(LoadPath<?,?,?> path)
Returns true if the given
LoadPath is the signal object returned from
get(Class, Class, Class) that indicates that we've previously found that there are
no available paths to load the requested resources and false otherwise. |
void |
put(Class<?> dataClass,
Class<?> resourceClass,
Class<?> transcodeClass,
LoadPath<?,?,?> loadPath) |
public boolean isEmptyLoadPath(@Nullable LoadPath<?,?,?> path)
LoadPath
is the signal object returned from
get(Class, Class, Class)
that indicates that we've previously found that there are
no available paths to load the requested resources and false
otherwise.@Nullable public <Data,TResource,Transcode> LoadPath<Data,TResource,Transcode> get(Class<Data> dataClass, Class<TResource> resourceClass, Class<Transcode> transcodeClass)
NO_PATHS_SIGNAL
to indicate that we've previously found that there are 0
available load paths for the requested types. Callers must check using
isEmptyLoadPath(LoadPath)
before using any load path returned by this method.