Data
- The type of data that well be loaded.public static class ModelLoader.LoadData<Data> extends Object
Keys
identifying the source of the load,
alternate cache keys pointing to equivalent data, and a
DataFetcher
that can be used to fetch data not found in
cache.Modifier and Type | Field and Description |
---|---|
List<Key> |
alternateKeys |
DataFetcher<Data> |
fetcher |
Key |
sourceKey |
Constructor and Description |
---|
LoadData(Key sourceKey,
DataFetcher<Data> fetcher) |
LoadData(Key sourceKey,
List<Key> alternateKeys,
DataFetcher<Data> fetcher) |
public final Key sourceKey
public final DataFetcher<Data> fetcher
public LoadData(Key sourceKey, DataFetcher<Data> fetcher)
public LoadData(Key sourceKey, List<Key> alternateKeys, DataFetcher<Data> fetcher)