ItemKeyedDataSource.LoadInitialParams

Added in 2.0.0
Deprecated in 3.0.0

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

Added in 2.0.0
Deprecated in 3.0.0
public final boolean placeholdersEnabled

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

requestedInitialKey

Added in 2.0.0
Deprecated in 3.0.0
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

Added in 2.0.0
Deprecated in 3.0.0
public final int requestedLoadSize

Requested number of items to load.

Note that this may be larger than available data.

Public constructors

LoadInitialParams

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

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.

int requestedLoadSize

Requested number of items to load.

Note that this may be larger than available data.

boolean placeholdersEnabled

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