Package-level declarations
Types
Link copied to clipboard
Base interface of pagination
Link copied to clipboard
@Serializable
Link copied to clipboard
Properties
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
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
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
Functions
Link copied to clipboard
Link copied to clipboard
Calculates pages count for given datasetSize
Calculates pages count for given datasetSize. As a fact, it is shortcut for calculatePagesNumber
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
fun <T> List<T>.createPaginationResult(pagination: Pagination, commonObjectsNumber: Long): PaginationResult<T>
fun <T> List<T>.createPaginationResult(firstIndex: Int, commonObjectsNumber: Long): PaginationResult<T>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun doWithPagination(startPagination: Pagination = FirstPagePagination(), requestMaker: (pagination: Pagination) -> Pagination?)
Link copied to clipboard
fun <T> emptyPaginationResult(basePagination: Pagination, objectsNumber: Number): PaginationResult<T>
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
inline fun <T, PR : PaginationResult<T>> PR.nextPageIfTrue(condition: PR.() -> Boolean): SimplePagination?
Link copied to clipboard
fun <Error class: unknown class>.paginate(with: Pagination, orderBy: Pair<<Error class: unknown class><out <Error class: unknown class>>, <Error class: unknown class>>? = null): <Error class: unknown class>
fun <Error class: unknown class>.paginate(with: Pagination, orderBy: <Error class: unknown class><out <Error class: unknown class>>?, reversed: Boolean = false): <Error class: unknown class>
Link copied to clipboard
Factory for SimplePagination
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard