PagedList

class PagedList<out T> @InternalWowApi constructor(val total: Long?, val list: List<T>, val exact: Boolean = total != null)

Data class implementing a paginated list of items.

Type Parameters

T

The type of items in the list.

Constructors

Link copied to clipboard
constructor(total: Long?, list: List<T>, exact: Boolean = total != null)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Whether total is every match; it defaults to whether total is present, so a bounded total that reached its limit passes false.

Link copied to clipboard
val list: List<T>

The list of items for the current page.

Link copied to clipboard
val total: Long?

The number of items across all pages; null when not counted (TotalMode.NONE).

Functions

Link copied to clipboard
fun copy(total: Long? = this.total, list: List<T> = this.list, exact: Boolean = this.exact): PagedList<T>

This PagedList with the given values replaced; for Wow's own query rewriting.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String