PlaceholderPaddedList


public interface PlaceholderPaddedList<T extends Object>


Interface to paged list that could contain placeholders.

Contains a paged list's snapshot state. For example, in the context of PagingDataEvent.Refresh exposed by PagingDataPresenter, each PlaceholderPaddedList represents a generation of paged data whereby a new generation is distinguished with a refresh load.

Summary

Public methods

abstract int
abstract @NonNull T
getItem(int index)
abstract int
abstract int
abstract int

Public methods

getDataCount

Added in 3.3.4
abstract int getDataCount()

getItem

Added in 3.3.4
abstract @NonNullgetItem(int index)

getPlaceholdersAfter

Added in 3.3.4
abstract int getPlaceholdersAfter()

getPlaceholdersBefore

Added in 3.3.4
abstract int getPlaceholdersBefore()

getSize

Added in 3.3.4
abstract int getSize()