Pagination
Base interface of pagination
If you want to request something, you should use SimplePagination. If you need to return some result including pagination - PaginationResult
Inheritors
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:
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: