PageUtils

object PageUtils

The PageUtils class provides utility functions for handling pagination operations.

Functions

Link copied to clipboard
fun numberOfPages(totalSize: Int, pageSize: Int): Int

Calculates the number of pages based on the total size and page size.

Link copied to clipboard
fun pagedList(list: List<Any>, page: Int, size: Int): List<Any>

Returns a paged sublist of the given list.

Link copied to clipboard
fun validate(page: Int?, size: Int?)

Validates the page and size parameters for pagination.