# PlaceholderPaddedList

Artifact: [androidx.paging:paging-common](https://developer.android.com/jetpack/androidx/releases/paging) [View Source](https://cs.android.com/search?q=file:androidx/paging/PlaceholderPaddedList.kt+class:androidx.paging.PlaceholderPaddedList) Added in [3.3.0](https://developer.android.com/jetpack/androidx/releases/paging#3.3.0)

*** ** * ** ***


```
public interface PlaceholderPaddedList<T extends Object>
```

<br />

*** ** * ** ***

Interface to paged list that could contain placeholders.

Contains a paged list's snapshot state. For example, in the context of `https://developer.android.com/reference/androidx/paging/PagingDataEvent.Refresh` exposed by `https://developer.android.com/reference/androidx/paging/PagingDataPresenter`, each `https://developer.android.com/reference/androidx/paging/PlaceholderPaddedList` represents a generation of paged data whereby a new generation is distinguished with a refresh load.

## Summary

| ### Public methods |
|---|---|
| `abstract int` | `https://developer.android.com/reference/androidx/paging/PlaceholderPaddedList#getDataCount()()` |
| `abstract @https://developer.android.com/reference/androidx/annotation/NonNull T` | `https://developer.android.com/reference/androidx/paging/PlaceholderPaddedList#getItem(kotlin.Int)(int index)` |
| `abstract int` | `https://developer.android.com/reference/androidx/paging/PlaceholderPaddedList#getPlaceholdersAfter()()` |
| `abstract int` | `https://developer.android.com/reference/androidx/paging/PlaceholderPaddedList#getPlaceholdersBefore()()` |
| `abstract int` | `https://developer.android.com/reference/androidx/paging/PlaceholderPaddedList#getSize()()` |

## Public methods

### getDataCount

Added in [3.3.0](https://developer.android.com/jetpack/androidx/releases/paging#3.3.0)

```
abstract int getDataCount()
```

### getItem

Added in [3.3.0](https://developer.android.com/jetpack/androidx/releases/paging#3.3.0)

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

### getPlaceholdersAfter

Added in [3.3.0](https://developer.android.com/jetpack/androidx/releases/paging#3.3.0)

```
abstract int getPlaceholdersAfter()
```

### getPlaceholdersBefore

Added in [3.3.0](https://developer.android.com/jetpack/androidx/releases/paging#3.3.0)

```
abstract int getPlaceholdersBefore()
```

### getSize

Added in [3.3.0](https://developer.android.com/jetpack/androidx/releases/paging#3.3.0)

```
abstract int getSize()
```