Pagination Result
Parameters
Current page number
Current page size. It can be greater than size of results
Result objects
Count of all objects across all pages
Constructors
Properties
First number in index of objects. It can be used as offset for databases or other data sources
Logical shortcut for comparison that page is 0
Last number in index of objects. In fact, one Pagination object represent data in next range:
Last number in index of objects. In fact, one Pagination object represent data in next range:
Amount of pages for current pagination
Amount of pages for current pagination
Functions
Computes the intersection of this range with other. Returns a pair representing the intersecting range, or null if the ranges don't overlap.
This method DO NOT check Pagination.page of receiver. Returns pagination for previous page
Shortcut for reverse
Example: