ItemKeyedDataSource.LoadInitialParams

public class ItemKeyedDataSource.LoadInitialParams<Key extends Object>


Holder object for inputs to loadInitial.

Parameters
<Key extends Object>

Type of data used to query Value types out of the DataSource.

Summary

Public fields

final @NonNull boolean

Defines whether placeholders are enabled, and whether the loaded total count will be ignored.

final @Nullable Key

Load items around this key, or at the beginning of the data set if null is passed.

final @NonNull int

Requested number of items to load.

Public constructors

<Key extends Object> LoadInitialParams(
    @Nullable Key requestedInitialKey,
    @NonNull int requestedLoadSize,
    @NonNull boolean placeholdersEnabled
)

Public fields

placeholdersEnabled

@NonNull
public final @NonNull boolean placeholdersEnabled

Defines whether placeholders are enabled, and whether the loaded total count will be ignored.

requestedInitialKey

@Nullable
public final @Nullable Key requestedInitialKey

Load items around this key, or at the beginning of the data set if null is passed.

Note that this key is generally a hint, and may be ignored if you want to always load from the beginning.

requestedLoadSize

@NonNull
public final @NonNull int requestedLoadSize

Requested number of items to load.

Note that this may be larger than available data.

Public constructors

LoadInitialParams

@NonNull
public final <Key extends Object> LoadInitialParams(
    @Nullable Key requestedInitialKey,
    @NonNull int requestedLoadSize,
    @NonNull boolean placeholdersEnabled
)
Parameters
<Key extends Object>

Type of data used to query Value types out of the DataSource.