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.1
abstract int getDataCount()

getItem

Added in 3.3.1
abstract @NonNullgetItem(int index)

getPlaceholdersAfter

Added in 3.3.1
abstract int getPlaceholdersAfter()

getPlaceholdersBefore

Added in 3.3.1
abstract int getPlaceholdersBefore()

getSize

Added in 3.3.1
abstract int getSize()