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 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 int

Requested number of items to load.

Public constructors

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

Public fields

placeholdersEnabled

@NonNull
public final 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 int requestedLoadSize

Requested number of items to load.

Note that this may be larger than available data.

Public constructors

LoadInitialParams

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

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