T
- unused data type.Z
- unused resource type.public class EmptyDataLoadProvider<T,Z> extends Object implements DataLoadProvider<T,Z>
DataLoadProvider
that returns null
for every class.Constructor and Description |
---|
EmptyDataLoadProvider() |
Modifier and Type | Method and Description |
---|---|
static <T,Z> DataLoadProvider<T,Z> |
get() |
ResourceDecoder<File,Z> |
getCacheDecoder()
Returns the
ResourceDecoder to use to decode the resource from the disk cache. |
ResourceEncoder<Z> |
getEncoder()
Returns the
ResourceEncoder to use to write the decoded and transformed resource
to the disk cache. |
ResourceDecoder<T,Z> |
getSourceDecoder()
Returns the
ResourceDecoder to use to decode the resource from the original data. |
Encoder<T> |
getSourceEncoder()
Returns the
Encoder to use to write the original data to the disk cache. |
public static <T,Z> DataLoadProvider<T,Z> get()
public ResourceDecoder<File,Z> getCacheDecoder()
DataLoadProvider
ResourceDecoder
to use to decode the resource from the disk cache.getCacheDecoder
in interface DataLoadProvider<T,Z>
public ResourceDecoder<T,Z> getSourceDecoder()
DataLoadProvider
ResourceDecoder
to use to decode the resource from the original data.getSourceDecoder
in interface DataLoadProvider<T,Z>
public Encoder<T> getSourceEncoder()
DataLoadProvider
Encoder
to use to write the original data to the disk cache.getSourceEncoder
in interface DataLoadProvider<T,Z>
public ResourceEncoder<Z> getEncoder()
DataLoadProvider
ResourceEncoder
to use to write the decoded and transformed resource
to the disk cache.getEncoder
in interface DataLoadProvider<T,Z>