Pagination

class Pagination @InternalWowApi constructor(val index: Int = 1, val size: Int = 10)

The page of results a paged query reads, and how many items a page holds. Pages are numbered from 1; the offset follows from the two.

Constructors

Link copied to clipboard
constructor(index: Int = 1, size: Int = 10)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val index: Int

The page number to retrieve, at least 1.

Link copied to clipboard
val size: Int

The number of items per page, at least 1.

Functions

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
fun offset(): Long

Calculates the zero-based offset for this pagination settings.

Link copied to clipboard
open override fun toString(): String