Pagination Result
data class PaginationResult<T>(val page: Int, val size: Int, val results: List<T>, val objectsNumber: Long) : Pagination
Parameters
page
Current page number
size
Current page size. It can be greater than size of results
results
Result objects
objects Number
Count of all objects across all pages
Constructors
Functions
Properties
Extensions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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
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
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Example:
Shortcut for reverse
Link copied to clipboard