Page
class in package klyn.data

    public final class Page<T>:

Page

Materialized page with an exact total count.

Example

    page = query.page(PageRequest(0, 20))
    print(page.totalPages)

Properties

Modifier and Type | Member | Description
--- | --- | ---
public readonly property | items `items as IList<T>` | Rows in this page.
public readonly property | pageIndex `pageIndex as Int` | Zero-based page index.
public readonly property | pageSize `pageSize as Int` | Requested maximum page size.
public readonly property | totalItems `totalItems as Long` | Exact number of rows in the complete query result.
public readonly property | totalPages `totalPages as Long` | Exact number of pages.

Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | Page `Page(items as IList<T>, request as PageRequest, totalItems as Long):` | Creates an immutable page result.