Pagination is a wrapper for encapsulate a list of same object in a page. This class will only do wraping work, such like indicating current page number and size of this page.
Common senario of using Pagination class is like list searching.
This class inherit from ml.rugal.sshcommon.page.SimplePage, hence its fields structure is like below:
So when do searching, server will return a page of object, to indicate current page and page size.
As you can see the pagination is nested inside a Message object as the data field. Inside the pagination object, there is a list field telling the real object retrieved from server; a totalCount indicate number of object inside th list; pageSize and pageNo represent size of each page and numebr of current page respectively.
Below is an instance of result of getting a list af threads
Because there is only one object in list, the totalCount field is 1, which is very intuitive.