Paged

fun <out A> Paged(page: Page<A>)(source)

Constructor to build a Paged from a Spring Page

Parameters

page

Page


fun <out A> Paged(data: List<A>, pageable: Pageable)(source)

Constructor to build a Paged from a list of data, applying given pagination

Parameters

data

Data to page

pageable

Requested pagination info


fun <out A> Paged(data: List<A>, page: Int, perPage: Int, totalPages: Int)(source)

Parameters

A

Type of the data in this page