Package sonia.scm
Class PageResult<T extends ModelObject>
java.lang.Object
sonia.scm.PageResult<T>
This represents the result of a page request. Contains the results for
the page and the overall count of all elements.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends ModelObject>
PageResult<T>createPage
(Collection<T> allEntities, int pageNumber, int pageSize) The entities for the current page.int
The overall count of all available elements.
-
Constructor Details
-
PageResult
-
-
Method Details
-
createPage
public static <T extends ModelObject> PageResult<T> createPage(Collection<T> allEntities, int pageNumber, int pageSize) -
getEntities
The entities for the current page. -
getOverallCount
public int getOverallCount()The overall count of all available elements.
-