Class Paging

java.lang.Object
org.hisp.dhis.query.Paging

public class Paging extends Object
Query paging.
Author:
Lars Helge Overland
  • Constructor Details

    • Paging

      public Paging()
      Constructor.
    • Paging

      public Paging(Integer page, Integer pageSize)
      Constructor.
      Parameters:
      page - the page number, starting on 1, can be null, cannot be negative.
      pageSize - the page size, can be null, cannot be negative.
  • Method Details

    • empty

      public static Paging empty()
      Returns a Paging with page and page size set to null.
      Returns:
      a Paging.
    • hasPage

      public boolean hasPage()
    • getPageOrDefault

      public int getPageOrDefault()
    • getPageSizeOrDefault

      public int getPageSizeOrDefault()
    • hasPageSize

      public boolean hasPageSize()
    • hasPaging

      public boolean hasPaging()
    • getOffset

      public int getOffset()