package pagination
Ordering
- Alphabetic
Visibility
- Public
- All
Type Members
-
case class
Page(pageNumber: Int, pageSize: Int, totalResults: Int, numberOfResults: Int) extends Product with Serializable
A Page represents a slice of objects from some collection.
A Page represents a slice of objects from some collection. A collection can be broken down into n pages, each with k results, with the last page containing j <= k results.
A Page is 1-indexed.
- pageNumber
the page number represented by this page. 1 indexed.
- pageSize
the max number of results per page.
- totalResults
the total number of results in the underlying collection
- numberOfResults
the number of results in this page, which is always <= pageSize
-
case class
PagedResult[T](results: Seq[T], page: Page) extends Product with Serializable
A PagedResult is a collection of objects T along with a Page instance that represents which page the objects T represent.
A PagedResult is a collection of objects T along with a Page instance that represents which page the objects T represent.
- results
the objects contained in the page
- page
page details
- case class Pages(current: Page, totalPages: Int) extends Product with Serializable