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 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(
    Key requestedInitialKey,
    int requestedLoadSize,
    boolean placeholdersEnabled
)

Public fields

placeholdersEnabled

public final boolean placeholdersEnabled

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

requestedInitialKey

public final 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

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(
    Key requestedInitialKey,
    int requestedLoadSize,
    boolean placeholdersEnabled
)
Parameters
<Key extends Object>

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