Package ca.uhn.fhir.mdm.api.paging
Class MdmPageRequest
java.lang.Object
ca.uhn.fhir.mdm.api.paging.MdmPageRequest
This class is essentially just a data clump of offset + count, as well as the ability to convert itself into a standard
PageRequest
for spring data to use. The reason we don't use PageRequest natively is because it is concerned with `pages` and `counts`,
but we are using `offset` and `count` which requires some minor translation.-
Constructor Summary
ConstructorDescriptionMdmPageRequest
(Integer theOffset, Integer theCount, int theDefaultPageSize, int theMaximumPageSize) MdmPageRequest
(org.hl7.fhir.instance.model.api.IPrimitiveType<Integer> theOffset, org.hl7.fhir.instance.model.api.IPrimitiveType<Integer> theCount, int theDefaultPageSize, int theMaximumPageSize) -
Method Summary
-
Constructor Details
-
MdmPageRequest
public MdmPageRequest(@Nullable org.hl7.fhir.instance.model.api.IPrimitiveType<Integer> theOffset, @Nullable org.hl7.fhir.instance.model.api.IPrimitiveType<Integer> theCount, int theDefaultPageSize, int theMaximumPageSize) -
MdmPageRequest
public MdmPageRequest(@Nullable Integer theOffset, @Nullable Integer theCount, int theDefaultPageSize, int theMaximumPageSize)
-
-
Method Details
-
getOffset
-
getPage
-
getCount
-
getNextOffset
-
getPreviousOffset
-
toPageRequest
-