Class PagingParams
java.lang.Object
com.iland.core.web.rest.response.common.PagingParams
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
BaBackupDirectoryFilterParams,BaBackupFileFilterParams,EventFilterParams
Paging Params.
- Author:
- Cory Snyder
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor sets the offset to 0, the limit to 25, and the order to DESC.PagingParams(Long offset, Long limit, PagingOrder order) Instantiates a new Paging params. -
Method Summary
Modifier and TypeMethodDescriptionlonggetLimit()Gets limit.longGets offset.getOrder()Gets order.Sets limit.Sets offset.setOrder(PagingOrder order) Sets order.
-
Field Details
-
offset
The paging offset. -
limit
The paging limit. -
order
The order that records are returned in.
-
-
Constructor Details
-
PagingParams
public PagingParams()Default constructor sets the offset to 0, the limit to 25, and the order to DESC. -
PagingParams
Instantiates a new Paging params.- Parameters:
offset- the offsetlimit- the limitorder- the order
-
-
Method Details
-
getOffset
public long getOffset()Gets offset.- Returns:
- the offset
-
getLimit
public long getLimit()Gets limit.- Returns:
- the limit
-
getOrder
Gets order.- Returns:
- the order
-
setOffset
Sets offset.- Parameters:
offset- the offset- Returns:
- the offset
-
setLimit
Sets limit.- Parameters:
limit- the limit- Returns:
- the limit
-
setOrder
Sets order.- Parameters:
order- the order- Returns:
- the order
-