Package org.hisp.dhis.query
Class Paging
java.lang.Object
org.hisp.dhis.query.Paging
Query paging.
- Author:
- Lars Helge Overland
-
Constructor Details
-
Paging
public Paging()Constructor. -
Paging
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
Returns aPagingwith page and page size set tonull.- 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()
-