Package dev.dsf.fhir.search
Class PageAndCount
java.lang.Object
dev.dsf.fhir.search.PageAndCount
-
Method Summary
Modifier and TypeMethodDescriptionstatic PageAndCountexists()static PageAndCountfrom(int page, int count) static PageAndCountintgetCount()intgetLastPage(int total) intgetPage()getSql()booleanisCountOnly(int total) booleanisLastPage(int total) static PageAndCountsingle()
-
Method Details
-
single
-
exists
-
from
-
from
- Parameters:
page-count-- Returns:
- Throws:
ArithmeticException- ifpage * count > Integer.MAX_VALUE- See Also:
-
getSql
-
isCountOnly
public boolean isCountOnly(int total) -
getPage
public int getPage() -
getCount
public int getCount() -
isLastPage
public boolean isLastPage(int total) -
getLastPage
public int getLastPage(int total)
-