Package

com.sksamuel.exts

pagination

Permalink

package pagination

Visibility
  1. Public
  2. All

Type Members

  1. case class Page(pageNumber: Int, pageSize: Int, totalResults: Int, numberOfResults: Int) extends Product with Serializable

    Permalink

    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

  2. case class PagedResult[T](results: Seq[T], page: Page) extends Product with Serializable

    Permalink

    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

  3. case class Pages(current: Page, totalPages: Int) extends Product with Serializable

    Permalink

Value Members

  1. object Page extends Serializable

    Permalink
  2. object PagedResult extends Serializable

    Permalink
  3. object Pages extends Serializable

    Permalink

Ungrouped