Pagination Result
@Serializable
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
Properties
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
Logical shortcut for comparison that page is 0
Link copied to clipboard
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
Amount of pages for current pagination
Link copied to clipboard
Amount of pages for current pagination
Functions
Link copied to clipboard
inline fun <I, O> PaginationResult<I>.changeResults(block: PaginationResult<I>.() -> List<O>): PaginationResult<O>
Link copied to clipboard
inline fun <I, O> PaginationResult<I>.changeResultsUnchecked(block: PaginationResult<I>.() -> List<O>): PaginationResult<O>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Shortcut for reverse
Example:
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard