Lines Matching refs:Key
40 * @param <Key> Type of data used to query Value types out of the DataSource.
43 public abstract class ItemKeyedDataSource<Key, Value> extends ContiguousDataSource<Key, Value> {
48 * @param <Key> Type of data used to query Value types out of the DataSource.
51 public static class LoadInitialParams<Key> {
60 public final Key requestedInitialKey;
76 public LoadInitialParams(@Nullable Key requestedInitialKey, int requestedLoadSize,
88 * @param <Key> Type of data used to query Value types out of the DataSource.
91 public static class LoadParams<Key> {
97 public final Key key;
106 public LoadParams(Key key, int requestedLoadSize) {
239 final Key getKey(int position, Value item) {
248 final void dispatchLoadInitial(@Nullable Key key, int initialLoadSize, int pageSize,
297 public abstract void loadInitial(@NonNull LoadInitialParams<Key> params,
316 public abstract void loadAfter(@NonNull LoadParams<Key> params,
338 public abstract void loadBefore(@NonNull LoadParams<Key> params,
353 * {@code data class Key(val name: String, val id: Int)}
356 * @return Key associated with given item.
359 public abstract Key getKey(@NonNull Value item);
363 public final <ToValue> ItemKeyedDataSource<Key, ToValue> mapByPage(
370 public final <ToValue> ItemKeyedDataSource<Key, ToValue> map(