Data
- The type of data that well be loaded.public static class ModelLoader.LoadData<Data>
extends java.lang.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 |
---|---|
java.util.List<Key> |
alternateKeys |
DataFetcher<Data> |
fetcher |
Key |
sourceKey |
Constructor and Description |
---|
LoadData(Key sourceKey,
DataFetcher<Data> fetcher) |
LoadData(Key sourceKey,
java.util.List<Key> alternateKeys,
DataFetcher<Data> fetcher) |
public final Key sourceKey
public final java.util.List<Key> alternateKeys
public final DataFetcher<Data> fetcher
public LoadData(@NonNull Key sourceKey, @NonNull DataFetcher<Data> fetcher)
public LoadData(@NonNull Key sourceKey, @NonNull java.util.List<Key> alternateKeys, @NonNull DataFetcher<Data> fetcher)