PagingDataEvent.Append
public final class PagingDataEvent.Append<T extends Object> extends PagingDataEvent
An append load event
Summary
Public methods |
|
|---|---|
boolean |
|
final @NonNull List<@NonNull T> |
The list of newly appended items. |
final int |
The count of null items trailing the list of loaded data when new data has been appended. |
final int |
The count of null items trailing the list of loaded data prior to new data being appended. |
final int |
The first index where this append is applied. |
int |
hashCode() |
@NonNull String |
toString() |
Public methods
getInserted
public final @NonNull List<@NonNull T> getInserted()
The list of newly appended items.
getNewPlaceholdersAfter
public final int getNewPlaceholdersAfter()
The count of null items trailing the list of loaded data when new data has been appended.
getOldPlaceholdersAfter
public final int getOldPlaceholdersAfter()
The count of null items trailing the list of loaded data prior to new data being appended.
getStartIndex
public final int getStartIndex()
The first index where this append is applied. If placeholders are enabled, represents the index of the first placeholder replaced with a real item. Otherwise, it represents the index of where the first new item is inserted.