Package com.datarobot.model
Class PagingParams
- java.lang.Object
-
- com.datarobot.model.PagingParams
-
public class PagingParams extends java.lang.ObjectThis class representsPaging Parametersthat can be used to limit results from the returnListobject that could potentially contain a large number of results. The results by default will use aPagingParams.limitof 50 items starting at the 0th item, using anoffsetof 0. To retrieve the next group, set theoffsetto 50 to skip ahead 50 items.
-
-
Field Summary
Fields Modifier and Type Field Description static PagingParamsDefaultA PagingParams object that represents the default settings (offsetat 0, andlimitat 50)
-
Constructor Summary
Constructors Constructor Description PagingParams(java.lang.Integer offset, java.lang.Integer limit)Constructs
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetLimit()Get the limit for thisPagingParamsobjectintgetOffset()Get the offset for thisPagingParamsobjectvoidsetLimit(int limit)Set the limit for thisPagingParamsobjectvoidsetOffset(int offset)Set the offset for thisPagingParamsobjectjava.util.Map<java.lang.String,java.lang.Object>toParameters()internaljava.lang.StringtoString()
-
-
-
Field Detail
-
Default
public static PagingParams Default
A PagingParams object that represents the default settings (offsetat 0, andlimitat 50)
-
-
Method Detail
-
getOffset
public int getOffset()
Get the offset for thisPagingParamsobject- Returns:
- The number of items to skip
-
setOffset
public void setOffset(int offset)
Set the offset for thisPagingParamsobject- Parameters:
offset- The number of items to skip
-
getLimit
public int getLimit()
Get the limit for thisPagingParamsobject- Returns:
- The number of items to retrieve
-
setLimit
public void setLimit(int limit)
Set the limit for thisPagingParamsobject- Parameters:
limit- The number of items to retrieve
-
toParameters
public java.util.Map<java.lang.String,java.lang.Object> toParameters()
internalConverts this object to a
Mapused to build the query string parameters for a request- Returns:
- A Map containing the parameters to be included as querystrings on the request.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-