klyn.data.Slice.Slice
constructor

    public Slice(items as IList<T>, request as PageRequest, hasNext as Boolean):

Description

Creates an immutable slice result.

Parameters

Parameter | Description
--- | ---
`items` | Current slice rows.
`request` | Paging request.
`hasNext` | Whether another slice exists.

Example

    slice = Slice<Int>([1, 2], PageRequest(1, 2), true)
    assert slice.hasPrevious