Package io.gdcc.spi.export
Class PageRequest
java.lang.Object
io.gdcc.spi.export.PageRequest
Defines pagination parameters for data retrieval methods that return
potentially large collections of results.
Use unpaged() for requests that should return all results in a single batch.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetLimit()intinthashCode()booleanisPaged()static PageRequestof(int offset, int limit) Creates a page request with the given offset and limit.toString()static PageRequestunpaged()Returns a request for all results (no pagination).
-
Method Details
-
of
Creates a page request with the given offset and limit.- Parameters:
offset- zero-based index of the first result to returnlimit- maximum number of results to return- Returns:
- a new PageRequest
-
unpaged
Returns a request for all results (no pagination). -
getOffset
public int getOffset() -
getLimit
public int getLimit() -
isPaged
public boolean isPaged() -
equals
-
hashCode
public int hashCode() -
toString
-