PagedList

data class PagedList<out T>(val total: Long, val list: List<T>) : IPagedList<T>

Data class implementing a paginated list of items.

This class provides a concrete implementation of IPagedList and includes a companion object with factory methods for creating empty paginated lists.

Parameters

T

The type of items in the list.

Samples

Constructors

Link copied to clipboard
constructor(total: Long, list: List<T>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val list: List<T>

The list of items for the current page.

Link copied to clipboard
open override val total: Long

The total number of items available across all pages.