SimplePagination

@Serializable
data class SimplePagination(val page: Int, val size: Int) : Pagination

Parameters

page

Current page number

size

Current page size

Constructors

Link copied to clipboard
constructor(page: Int, size: Int)

Functions

Link copied to clipboard
open operator fun contains(value: Int): Boolean
Link copied to clipboard
Link copied to clipboard
open fun isEmpty(): Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Pagination.optionallyReverse(objectsCount: Int, reverse: Boolean): Pagination
fun Pagination.optionallyReverse(objectsCount: Long, reverse: Boolean): Pagination
Link copied to clipboard

Shortcut for reverse

Example:

Properties

Link copied to clipboard
Link copied to clipboard
open override val endInclusive: Int
Link copied to clipboard

First number in index of objects. It can be used as offset for databases or other data sources

Link copied to clipboard

Logical shortcut for comparison that page is 0

Link copied to clipboard

Last number in index of objects. In fact, one Pagination object represent data in next range:

Link copied to clipboard

Last number in index of objects. In fact, one Pagination object represent data in next range:

Link copied to clipboard
open override val page: Int
Link copied to clipboard
open override val size: Int
Link copied to clipboard
open override val start: Int