Package sonia.scm

Class PageResult<T extends ModelObject>

java.lang.Object
sonia.scm.PageResult<T>

public class PageResult<T extends ModelObject> extends Object
This represents the result of a page request. Contains the results for the page and the overall count of all elements.
  • Constructor Details

    • PageResult

      public PageResult(Collection<T> entities, int overallCount)
  • Method Details

    • createPage

      public static <T extends ModelObject> PageResult<T> createPage(Collection<T> allEntities, int pageNumber, int pageSize)
    • getEntities

      public Collection<T> getEntities()
      The entities for the current page.
    • getOverallCount

      public int getOverallCount()
      The overall count of all available elements.